[llvm-commits] [llvm] r110197 - /llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Benjamin Kramer
benny.kra at googlemail.com
Wed Aug 4 06:16:30 PDT 2010
Author: d0k
Date: Wed Aug 4 08:16:30 2010
New Revision: 110197
URL: http://llvm.org/viewvc/llvm-project?rev=110197&view=rev
Log:
Print an error message when someone tries -integrated-as on an unsupported target.
- The COFF backend doesn't support MingW/Cygwin at the moment, it'll report an
error, but it's still much better than random assertions from the MachO backend.
- We want to make ELF the default eventually, it's what the majority of targets use.
Modified:
llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Modified: llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetMachine.cpp?rev=110197&r1=110196&r2=110197&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetMachine.cpp Wed Aug 4 08:16:30 2010
@@ -46,10 +46,16 @@
bool RelaxAll) {
Triple TheTriple(TT);
switch (TheTriple.getOS()) {
+ case Triple::Darwin:
+ return createMachOStreamer(Ctx, TAB, _OS, _Emitter, RelaxAll);
+ case Triple::MinGW32:
+ case Triple::MinGW64:
+ case Triple::Cygwin:
case Triple::Win32:
return createWinCOFFStreamer(Ctx, TAB, *_Emitter, _OS, RelaxAll);
default:
- return createMachOStreamer(Ctx, TAB, _OS, _Emitter, RelaxAll);
+ // FIXME: default to ELF.
+ report_fatal_error("object emission not implemented for this target.");
}
}
More information about the llvm-commits
mailing list