forked from OSchip/llvm-project
parent
8c34dd8257
commit
3c70d38d1f
|
@ -528,7 +528,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
|
|||
llvm::join(TargetOpts.Features.begin(), TargetOpts.Features.end(), ",");
|
||||
|
||||
// Keep this synced with the equivalent code in tools/driver/cc1as_main.cpp.
|
||||
llvm::Reloc::Model RM = llvm::Reloc::Default;
|
||||
llvm::Optional<llvm::Reloc::Model> RM;
|
||||
if (CodeGenOpts.RelocationModel == "static") {
|
||||
RM = llvm::Reloc::Static;
|
||||
} else if (CodeGenOpts.RelocationModel == "pic") {
|
||||
|
|
|
@ -3609,8 +3609,6 @@ ParsePICArgs(const ToolChain &ToolChain, const llvm::Triple &Triple,
|
|||
|
||||
static const char *RelocationModelName(llvm::Reloc::Model Model) {
|
||||
switch (Model) {
|
||||
case llvm::Reloc::Default:
|
||||
return nullptr;
|
||||
case llvm::Reloc::Static:
|
||||
return "static";
|
||||
case llvm::Reloc::PIC_:
|
||||
|
|
Loading…
Reference in New Issue