2014-11-11 08:22:12 +08:00
|
|
|
//===--- CodeGenOptions.cpp -----------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2016-04-09 00:52:00 +08:00
|
|
|
#include "clang/Frontend/CodeGenOptions.h"
|
2015-01-14 19:29:14 +08:00
|
|
|
#include <string.h>
|
2014-11-11 08:22:12 +08:00
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
|
|
|
|
CodeGenOptions::CodeGenOptions() {
|
|
|
|
#define CODEGENOPT(Name, Bits, Default) Name = Default;
|
|
|
|
#define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
|
2016-04-09 00:52:00 +08:00
|
|
|
#include "clang/Frontend/CodeGenOptions.def"
|
2014-11-11 08:22:12 +08:00
|
|
|
|
|
|
|
RelocationModel = "pic";
|
|
|
|
memcpy(CoverageVersion, "402*", 4);
|
|
|
|
}
|
|
|
|
|
2016-01-06 22:35:46 +08:00
|
|
|
bool CodeGenOptions::isNoBuiltinFunc(const char *Name) const {
|
|
|
|
StringRef FuncName(Name);
|
|
|
|
for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; ++i)
|
|
|
|
if (FuncName.equals(NoBuiltinFuncs[i]))
|
|
|
|
return true;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-11-11 08:22:12 +08:00
|
|
|
} // end namespace clang
|