2014-11-11 08:22:12 +08:00
|
|
|
//===--- CodeGenOptions.cpp -----------------------------------------------===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08: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
|
2014-11-11 08:22:12 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2018-12-11 11:18:39 +08:00
|
|
|
#include "clang/Basic/CodeGenOptions.h"
|
2015-01-14 19:29:14 +08:00
|
|
|
#include <string.h>
|
2014-11-11 08:22:12 +08:00
|
|
|
|
|
|
|
namespace clang {
|
2020-09-03 01:35:42 +08:00
|
|
|
|
|
|
|
CodeGenOptions::CodeGenOptions() {
|
2014-11-11 08:22:12 +08:00
|
|
|
#define CODEGENOPT(Name, Bits, Default) Name = Default;
|
|
|
|
#define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
|
2018-12-11 11:18:39 +08:00
|
|
|
#include "clang/Basic/CodeGenOptions.def"
|
2014-11-11 08:22:12 +08:00
|
|
|
|
2018-01-18 08:20:03 +08:00
|
|
|
RelocationModel = llvm::Reloc::PIC_;
|
2020-05-12 14:20:33 +08:00
|
|
|
memcpy(CoverageVersion, "408*", 4);
|
2014-11-11 08:22:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
} // end namespace clang
|