1 //===--- CodeGenOptions.cpp -----------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "clang/Frontend/CodeGenOptions.h"
15 CodeGenOptions::CodeGenOptions() {
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"
20 RelocationModel = llvm::Reloc::PIC_;
21 memcpy(CoverageVersion, "402*", 4);
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]))
32 } // end namespace clang