2015-01-18 11:23:48 -05:00
|
|
|
//===--- CodeGenOptions.cpp -----------------------------------------------===//
|
|
|
|
|
//
|
2019-08-20 16:50:49 -04:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-01-18 11:23:48 -05:00
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2019-01-19 05:04:05 -05:00
|
|
|
#include "clang/Basic/CodeGenOptions.h"
|
2015-01-18 11:23:48 -05:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
|
|
|
|
|
|
CodeGenOptions::CodeGenOptions() {
|
|
|
|
|
#define CODEGENOPT(Name, Bits, Default) Name = Default;
|
|
|
|
|
#define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
|
2019-01-19 05:04:05 -05:00
|
|
|
#include "clang/Basic/CodeGenOptions.def"
|
2015-01-18 11:23:48 -05:00
|
|
|
|
2018-07-28 07:06:01 -04:00
|
|
|
RelocationModel = llvm::Reloc::PIC_;
|
2020-07-26 15:36:28 -04:00
|
|
|
memcpy(CoverageVersion, "408*", 4);
|
2015-01-18 11:23:48 -05:00
|
|
|
}
|
|
|
|
|
|
2016-01-06 15:02:26 -05:00
|
|
|
bool CodeGenOptions::isNoBuiltinFunc(const char *Name) const {
|
|
|
|
|
StringRef FuncName(Name);
|
|
|
|
|
for (unsigned i = 0, e = NoBuiltinFuncs.size(); i != e; ++i)
|
|
|
|
|
if (FuncName.equals(NoBuiltinFuncs[i]))
|
|
|
|
|
return true;
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-18 11:23:48 -05:00
|
|
|
} // end namespace clang
|