/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Basic/CodeGenOptions.cpp
Line | Count | Source |
1 | | //===--- CodeGenOptions.cpp -----------------------------------------------===// |
2 | | // |
3 | | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | | // See https://llvm.org/LICENSE.txt for license information. |
5 | | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | | // |
7 | | //===----------------------------------------------------------------------===// |
8 | | |
9 | | #include "clang/Basic/CodeGenOptions.h" |
10 | | #include <string.h> |
11 | | |
12 | | namespace clang { |
13 | | |
14 | 109k | CodeGenOptions::CodeGenOptions() { |
15 | 20.2M | #define CODEGENOPT(Name, Bits, Default) Name = Default; |
16 | 1.31M | #define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default); |
17 | 109k | #include "clang/Basic/CodeGenOptions.def" |
18 | | |
19 | 109k | RelocationModel = llvm::Reloc::PIC_; |
20 | 109k | memcpy(CoverageVersion, "408*", 4); |
21 | 109k | } |
22 | | |
23 | 151k | bool CodeGenOptions::isNoBuiltinFunc(const char *Name) const { |
24 | 151k | StringRef FuncName(Name); |
25 | 151k | for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; ++i401 ) |
26 | 437 | if (FuncName.equals(NoBuiltinFuncs[i])) |
27 | 36 | return true; |
28 | 151k | return false; |
29 | 151k | } |
30 | | |
31 | | } // end namespace clang |