mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Work around pr23045 and make it easier to reproduce.
Dropping old debug format requires the entire module to be read upfront. This was failing only with the gold plugin, but that is just because llvm-link was not upgrading metadata. The new testcase using llvm-link shows the problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -69,6 +69,12 @@ loadFile(const char *argv0, const std::string &FN, LLVMContext &Context) {
|
||||
if (!Result)
|
||||
Err.print(argv0, errs());
|
||||
|
||||
// Fixme (pr23045). We would like to upgrade the metadata with something like
|
||||
// Result->materializeMetadata();
|
||||
// UpgradeDebugInfo(*Result);
|
||||
// but that fails to drop old debug info from function bodies.
|
||||
Result->materializeAllPermanently();
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user