mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
verify-di: Add back braces for MSVC compatability
Fixup after r206300. <rdar://problem/15500563> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
32791b02fa
commit
950c7b25bb
@ -2377,16 +2377,23 @@ void DebugInfoVerifier::verifyDebugInfo() {
|
|||||||
processInstructions(Finder);
|
processInstructions(Finder);
|
||||||
|
|
||||||
// Verify Debug Info.
|
// Verify Debug Info.
|
||||||
for (DICompileUnit CU : Finder.compile_units())
|
//
|
||||||
|
// NOTE: The loud braces are necessary for MSVC compatibility.
|
||||||
|
for (DICompileUnit CU : Finder.compile_units()) {
|
||||||
Assert1(CU.Verify(), "DICompileUnit does not Verify!", CU);
|
Assert1(CU.Verify(), "DICompileUnit does not Verify!", CU);
|
||||||
for (DISubprogram S : Finder.subprograms())
|
}
|
||||||
|
for (DISubprogram S : Finder.subprograms()) {
|
||||||
Assert1(S.Verify(), "DISubprogram does not Verify!", S);
|
Assert1(S.Verify(), "DISubprogram does not Verify!", S);
|
||||||
for (DIGlobalVariable GV : Finder.global_variables())
|
}
|
||||||
|
for (DIGlobalVariable GV : Finder.global_variables()) {
|
||||||
Assert1(GV.Verify(), "DIGlobalVariable does not Verify!", GV);
|
Assert1(GV.Verify(), "DIGlobalVariable does not Verify!", GV);
|
||||||
for (DIType T : Finder.types())
|
}
|
||||||
|
for (DIType T : Finder.types()) {
|
||||||
Assert1(T.Verify(), "DIType does not Verify!", T);
|
Assert1(T.Verify(), "DIType does not Verify!", T);
|
||||||
for (DIScope S : Finder.scopes())
|
}
|
||||||
|
for (DIScope S : Finder.scopes()) {
|
||||||
Assert1(S.Verify(), "DIScope does not Verify!", S);
|
Assert1(S.Verify(), "DIScope does not Verify!", S);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebugInfoVerifier::processInstructions(DebugInfoFinder &Finder) {
|
void DebugInfoVerifier::processInstructions(DebugInfoFinder &Finder) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user