Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/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
56.8k
CodeGenOptions::CodeGenOptions() {
15
9.26M
#define CODEGENOPT(Name, Bits, Default) Name = Default;
16
795k
#define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
17
56.8k
#include "clang/Basic/CodeGenOptions.def"
18
56.8k
19
56.8k
  RelocationModel = llvm::Reloc::PIC_;
20
56.8k
  memcpy(CoverageVersion, "402*", 4);
21
56.8k
}
22
23
531k
bool CodeGenOptions::isNoBuiltinFunc(const char *Name) const {
24
531k
  StringRef FuncName(Name);
25
531k
  for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; 
++i387
)
26
422
    if (FuncName.equals(NoBuiltinFuncs[i]))
27
35
      return true;
28
531k
  
return false531k
;
29
531k
}
30
31
}  // end namespace clang