mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-12 05:40:30 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245254 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8cfff3bc8
commit
440cf86615
@ -539,6 +539,11 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
|
||||
if (T.isOSDarwin())
|
||||
return Triple::MachO;
|
||||
return Triple::ELF;
|
||||
|
||||
case Triple::wasm32:
|
||||
case Triple::wasm64:
|
||||
// Unknown for now, until an object format is specified.
|
||||
return Triple::UnknownObjectFormat;
|
||||
}
|
||||
|
||||
if (T.isOSDarwin())
|
||||
|
Loading…
x
Reference in New Issue
Block a user