diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-11-11 00:22:12 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-11-11 00:22:12 +0000 |
commit | e106102176f04b782e342bab8942a35febb6ab02 (patch) | |
tree | 1c20a6b5ac0fe0f2be92bda7e8a838044e10caaf /clang/lib/Frontend/CodeGenOptions.cpp | |
parent | 4ca4b5cea329dc437e7ed46c8c65923503955582 (diff) | |
download | llvm-e106102176f04b782e342bab8942a35febb6ab02.zip llvm-e106102176f04b782e342bab8942a35febb6ab02.tar.gz llvm-e106102176f04b782e342bab8942a35febb6ab02.tar.bz2 |
Move CodeGenOptions constructor out-of-line and add missing headers. NFC.
llvm-svn: 221646
Diffstat (limited to 'clang/lib/Frontend/CodeGenOptions.cpp')
-rw-r--r-- | clang/lib/Frontend/CodeGenOptions.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CodeGenOptions.cpp b/clang/lib/Frontend/CodeGenOptions.cpp new file mode 100644 index 0000000..4fa28b4 --- /dev/null +++ b/clang/lib/Frontend/CodeGenOptions.cpp @@ -0,0 +1,24 @@ +//===--- CodeGenOptions.cpp -----------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include <string.h> +#include "clang/Frontend/CodeGenOptions.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); +} + +} // end namespace clang |