diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-04-07 17:49:44 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-04-07 17:49:44 +0000 |
commit | 94cfc603d1896f0f76e7ede712280f526bc88602 (patch) | |
tree | 83befabb82d5b4096a89cd47c7315edfb12de4a1 /clang/lib/Frontend/CodeGenOptions.cpp | |
parent | ee366eff4498e2e82e8be9e7c4fde262a1c2d386 (diff) | |
download | bcm5719-llvm-94cfc603d1896f0f76e7ede712280f526bc88602.tar.gz bcm5719-llvm-94cfc603d1896f0f76e7ede712280f526bc88602.zip |
Basic: move CodeGenOptions from Frontend
This is a mechanical move of CodeGenOptions from libFrontend to libBasic. This
fixes the layering violation introduced earlier by threading CodeGenOptions into
TargetInfo. It should also fix the modules based self-hosting builds. NFC.
llvm-svn: 265702
Diffstat (limited to 'clang/lib/Frontend/CodeGenOptions.cpp')
-rw-r--r-- | clang/lib/Frontend/CodeGenOptions.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/clang/lib/Frontend/CodeGenOptions.cpp b/clang/lib/Frontend/CodeGenOptions.cpp deleted file mode 100644 index 50bb9f951be..00000000000 --- a/clang/lib/Frontend/CodeGenOptions.cpp +++ /dev/null @@ -1,32 +0,0 @@ -//===--- CodeGenOptions.cpp -----------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "clang/Frontend/CodeGenOptions.h" -#include <string.h> - -namespace clang { - -CodeGenOptions::CodeGenOptions() { -#define CODEGENOPT(Name, Bits, Default) Name = Default; -#define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default); -#include "clang/Frontend/CodeGenOptions.def" - - RelocationModel = "pic"; - memcpy(CoverageVersion, "402*", 4); -} - -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; -} - -} // end namespace clang |