diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-18 11:58:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-18 11:58:50 +0000 |
commit | 699281cce7adec546a52d986928513f91272e723 (patch) | |
tree | 73a400a4fc089490aa3a8febf0f43a51ee77f81c /llvm/lib/Object/IRObjectFile.cpp | |
parent | a854c0a0c3b0c295f7dcf3439e9655ad6f363f5a (diff) | |
download | llvm-699281cce7adec546a52d986928513f91272e723.zip llvm-699281cce7adec546a52d986928513f91272e723.tar.gz llvm-699281cce7adec546a52d986928513f91272e723.tar.bz2 |
Don't pass a Reloc::Model to MC.
MC only needs to know if the output is PIC or not. It never has to
decide about creating GOTs and PLTs for example. The only thing that
MC itself uses this information for is expanding "macros" in sparc and
mips. The rest I am pretty sure could be moved to CodeGen.
This is a cleanup and isolates the code from future changes to
Reloc::Model.
llvm-svn: 269909
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/IRObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/IRObjectFile.cpp b/llvm/lib/Object/IRObjectFile.cpp index 46012b7..5c943be 100644 --- a/llvm/lib/Object/IRObjectFile.cpp +++ b/llvm/lib/Object/IRObjectFile.cpp @@ -79,7 +79,7 @@ void IRObjectFile::CollectAsmUndefinedRefs( MCObjectFileInfo MOFI; MCContext MCCtx(MAI.get(), MRI.get(), &MOFI); - MOFI.InitMCObjectFileInfo(TT, Reloc::Default, CodeModel::Default, MCCtx); + MOFI.InitMCObjectFileInfo(TT, /*PIC*/ false, CodeModel::Default, MCCtx); std::unique_ptr<RecordStreamer> Streamer(new RecordStreamer(MCCtx)); T->createNullTargetStreamer(*Streamer); |