Coverage Report

Created: 2018-12-11 00:00

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/lib/Frontend/CodeGenOptions.cpp
Line
Count
Source
1
//===--- CodeGenOptions.cpp -----------------------------------------------===//
2
//
3
//                     The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
10
#include "clang/Frontend/CodeGenOptions.h"
11
#include <string.h>
12
13
namespace clang {
14
15
50.4k
CodeGenOptions::CodeGenOptions() {
16
8.16M
#define CODEGENOPT(Name, Bits, Default) Name = Default;
17
705k
#define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
18
50.4k
#include "clang/Frontend/CodeGenOptions.def"
19
50.4k
20
50.4k
  RelocationModel = llvm::Reloc::PIC_;
21
50.4k
  memcpy(CoverageVersion, "402*", 4);
22
50.4k
}
23
24
523k
bool CodeGenOptions::isNoBuiltinFunc(const char *Name) const {
25
523k
  StringRef FuncName(Name);
26
524k
  for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; 
++i387
)
27
422
    if (FuncName.equals(NoBuiltinFuncs[i]))
28
35
      return true;
29
523k
  
return false523k
;
30
523k
}
31
32
}  // end namespace clang