mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-19 11:41:53 +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 llvm-svn: 152268
This commit is contained in:
parent
d2dc3cff1d
commit
6c4a2c8050
@ -151,13 +151,13 @@ static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
|||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
|
|
||||||
if (TheTriple.isOSDarwin())
|
if (TheTriple.isOSDarwin())
|
||||||
return createMachOStreamer(Ctx, MAB, OS, Emitter, RelaxAll);
|
return createMachOStreamer(Ctx, MAB, OS, Emitter, false);
|
||||||
|
|
||||||
if (TheTriple.isOSWindows()) {
|
if (TheTriple.isOSWindows()) {
|
||||||
llvm_unreachable("ARM does not support Windows COFF format");
|
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,
|
static MCInstPrinter *createARMMCInstPrinter(const Target &T,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user