Skip to content

Commit ab48abe

Browse files
author
Dan Gohman
committed
[WebAssembly] Don't default to ELF in the triple.
WebAssembly doesn't yet have a specified binary format, and it may not end up being ELF, so we don't want the Triple class defaulting to ELF for it at this time. llvm-svn: 245254
1 parent f66d384 commit ab48abe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Support/Triple.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,11 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
539539
if (T.isOSDarwin())
540540
return Triple::MachO;
541541
return Triple::ELF;
542+
543+
case Triple::wasm32:
544+
case Triple::wasm64:
545+
// Unknown for now, until an object format is specified.
546+
return Triple::UnknownObjectFormat;
542547
}
543548

544549
if (T.isOSDarwin())

0 commit comments

Comments
 (0)