mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Implement TODO for better diagnostic output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0fce76a009
commit
749ce032ba
@ -82,10 +82,14 @@ static struct PerModuleInfo {
|
||||
// resolved!
|
||||
//
|
||||
if (!GlobalRefs.empty()) {
|
||||
// TODO: Make this more detailed! Loop over each undef value and print
|
||||
// info
|
||||
ThrowException("TODO: Make better error - Unresolved forward constant "
|
||||
"references exist!");
|
||||
string UndefinedReferences = "Unresolved global references exist:\n";
|
||||
|
||||
for (GlobalRefsType::iterator I = GlobalRefs.begin(), E =GlobalRefs.end();
|
||||
I != E; ++I) {
|
||||
UndefinedReferences += " " + I->first.first->getDescription() + " " +
|
||||
I->first.second.getName() + "\n";
|
||||
}
|
||||
ThrowException(UndefinedReferences);
|
||||
}
|
||||
|
||||
Values.clear(); // Clear out method local definitions
|
||||
|
Loading…
Reference in New Issue
Block a user