clang  6.0.0svn
CodeGenOptions.cpp
Go to the documentation of this file.
1 //===--- CodeGenOptions.cpp -----------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
11 #include <string.h>
12 
13 namespace clang {
14 
16 #define CODEGENOPT(Name, Bits, Default) Name = Default;
17 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
18 #include "clang/Frontend/CodeGenOptions.def"
19 
20  RelocationModel = "pic";
21  memcpy(CoverageVersion, "402*", 4);
22 }
23 
24 bool CodeGenOptions::isNoBuiltinFunc(const char *Name) const {
25  StringRef FuncName(Name);
26  for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; ++i)
27  if (FuncName.equals(NoBuiltinFuncs[i]))
28  return true;
29  return false;
30 }
31 
32 } // end namespace clang
bool isNoBuiltinFunc(const char *Name) const
Is this a libc/libm function that is no longer recognized as a builtin because a -fno-builtin-* optio...
char CoverageVersion[4]
The version string to put into coverage files.
std::vector< std::string > NoBuiltinFuncs
A list of all -fno-builtin-* function names (e.g., memset).
std::string RelocationModel
The name of the relocation model to use.
Dataflow Directional Tag Classes.