blob: 50bb9f951be487b06616f7f2a3ead0fc538b1ca3 [file] [log] [blame]
Alexey Samsonove1061022014-11-11 00:22:12 +00001//===--- 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
Saleem Abdulrasool10a49722016-04-08 16:52:00 +000010#include "clang/Frontend/CodeGenOptions.h"
Chandler Carruth0d9593d2015-01-14 11:29:14 +000011#include <string.h>
Alexey Samsonove1061022014-11-11 00:22:12 +000012
13namespace clang {
14
15CodeGenOptions::CodeGenOptions() {
16#define CODEGENOPT(Name, Bits, Default) Name = Default;
17#define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
Saleem Abdulrasool10a49722016-04-08 16:52:00 +000018#include "clang/Frontend/CodeGenOptions.def"
Alexey Samsonove1061022014-11-11 00:22:12 +000019
20 RelocationModel = "pic";
21 memcpy(CoverageVersion, "402*", 4);
22}
23
Chad Rosier7dbc9cf2016-01-06 14:35:46 +000024bool CodeGenOptions::isNoBuiltinFunc(const char *Name) const {
25 StringRef FuncName(Name);
26 for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; ++i)
27 if (FuncName.equals(NoBuiltinFuncs[i]))
28 return true;
29 return false;
30}
31
Alexey Samsonove1061022014-11-11 00:22:12 +000032} // end namespace clang