mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
Implement TODO for better diagnostic output
llvm-svn: 1859
This commit is contained in:
parent
889b1e5b00
commit
23379a852e
@ -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