mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[NFC] WebAssembly build break #2
Summary: Same as r332530, move WasmSymbol::dump to an implementation file to avoid linker issues when the dump function is seen in the header, doesn't get eliminated, and then linking fails because of the missing dependency. <rdar://problem/40258137> Reviewers: sbc100, ncw, paquette, vsk, dschuff Subscribers: jgravelle-google, aheejin, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D46985 llvm-svn: 332542
This commit is contained in:
parent
cbf403bc80
commit
e5be48813e
@ -91,7 +91,7 @@ public:
|
||||
void print(raw_ostream &Out) const;
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
LLVM_DUMP_METHOD void dump() const { print(dbgs()); }
|
||||
LLVM_DUMP_METHOD void dump() const;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -48,6 +48,10 @@ void WasmSymbol::print(raw_ostream &Out) const {
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
LLVM_DUMP_METHOD void WasmSymbol::dump() const { print(dbgs()); }
|
||||
#endif
|
||||
|
||||
Expected<std::unique_ptr<WasmObjectFile>>
|
||||
ObjectFile::createWasmObjectFile(MemoryBufferRef Buffer) {
|
||||
Error Err = Error::success();
|
||||
|
Loading…
Reference in New Issue
Block a user