diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 | 
| commit | 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (patch) | |
| tree | 02a1ac369cb734d0abfa5000dd86e5b7797e6a74 /lib/Basic/CodeGenOptions.cpp | |
| parent | c7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (diff) | |
Notes
Diffstat (limited to 'lib/Basic/CodeGenOptions.cpp')
| -rw-r--r-- | lib/Basic/CodeGenOptions.cpp | 32 | 
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/Basic/CodeGenOptions.cpp b/lib/Basic/CodeGenOptions.cpp new file mode 100644 index 0000000000000..aface1cd4bf91 --- /dev/null +++ b/lib/Basic/CodeGenOptions.cpp @@ -0,0 +1,32 @@ +//===--- 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/Basic/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/Basic/CodeGenOptions.def" + +  RelocationModel = llvm::Reloc::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  | 
