mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
ARM don't use MCRelaxAll, as it's not safe on ARM.
The ARM code generator makes aggressive assumptions about the encodings being selected for branches which MCRelaxAll invalidates. rdar://11006355 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61dfa77fce
commit
fd03ccdded
@ -151,13 +151,13 @@ static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
Triple TheTriple(TT);
|
||||
|
||||
if (TheTriple.isOSDarwin())
|
||||
return createMachOStreamer(Ctx, MAB, OS, Emitter, RelaxAll);
|
||||
return createMachOStreamer(Ctx, MAB, OS, Emitter, false);
|
||||
|
||||
if (TheTriple.isOSWindows()) {
|
||||
llvm_unreachable("ARM does not support Windows COFF format");
|
||||
}
|
||||
|
||||
return createELFStreamer(Ctx, MAB, OS, Emitter, RelaxAll, NoExecStack);
|
||||
return createELFStreamer(Ctx, MAB, OS, Emitter, false, NoExecStack);
|
||||
}
|
||||
|
||||
static MCInstPrinter *createARMMCInstPrinter(const Target &T,
|
||||
|
Loading…
x
Reference in New Issue
Block a user