mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Simplify a DEBUG statement to remove a set but not used variable in release builds.
llvm-svn: 325959
This commit is contained in:
parent
a17dd7c4dd
commit
217de730f3
@ -1181,15 +1181,12 @@ void WasmObjectWriter::writeObject(MCAssembler &Asm,
|
||||
DEBUG(dbgs() << " -> segment index: " << Ref.Segment);
|
||||
} else {
|
||||
// A "true" Wasm global (currently just __stack_pointer)
|
||||
unsigned WasmIndex;
|
||||
if (WS.isDefined()) {
|
||||
if (WS.isDefined())
|
||||
report_fatal_error("don't yet support defined globals");
|
||||
} else {
|
||||
// An import; the index was assigned above
|
||||
WasmIndex = WasmIndices.find(&WS)->second;
|
||||
}
|
||||
|
||||
DEBUG(dbgs() << " -> global index: " << WasmIndex << "\n");
|
||||
// An import; the index was assigned above
|
||||
DEBUG(dbgs() << " -> global index: " << WasmIndices.find(&WS)->second
|
||||
<< "\n");
|
||||
}
|
||||
|
||||
if (WS.isDefined())
|
||||
|
Loading…
Reference in New Issue
Block a user