mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
Tidy up. Whitepsace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
91b60c1487
commit
fe59d853c6
@ -49,7 +49,7 @@ namespace {
|
|||||||
static void SrcMgrDiagHandler(const SMDiagnostic &Diag, void *diagInfo) {
|
static void SrcMgrDiagHandler(const SMDiagnostic &Diag, void *diagInfo) {
|
||||||
SrcMgrDiagInfo *DiagInfo = static_cast<SrcMgrDiagInfo *>(diagInfo);
|
SrcMgrDiagInfo *DiagInfo = static_cast<SrcMgrDiagInfo *>(diagInfo);
|
||||||
assert(DiagInfo && "Diagnostic context not passed down?");
|
assert(DiagInfo && "Diagnostic context not passed down?");
|
||||||
|
|
||||||
// If the inline asm had metadata associated with it, pull out a location
|
// If the inline asm had metadata associated with it, pull out a location
|
||||||
// cookie corresponding to which line the error occurred on.
|
// cookie corresponding to which line the error occurred on.
|
||||||
unsigned LocCookie = 0;
|
unsigned LocCookie = 0;
|
||||||
@ -57,13 +57,13 @@ static void SrcMgrDiagHandler(const SMDiagnostic &Diag, void *diagInfo) {
|
|||||||
unsigned ErrorLine = Diag.getLineNo()-1;
|
unsigned ErrorLine = Diag.getLineNo()-1;
|
||||||
if (ErrorLine >= LocInfo->getNumOperands())
|
if (ErrorLine >= LocInfo->getNumOperands())
|
||||||
ErrorLine = 0;
|
ErrorLine = 0;
|
||||||
|
|
||||||
if (LocInfo->getNumOperands() != 0)
|
if (LocInfo->getNumOperands() != 0)
|
||||||
if (const ConstantInt *CI =
|
if (const ConstantInt *CI =
|
||||||
dyn_cast<ConstantInt>(LocInfo->getOperand(ErrorLine)))
|
dyn_cast<ConstantInt>(LocInfo->getOperand(ErrorLine)))
|
||||||
LocCookie = CI->getZExtValue();
|
LocCookie = CI->getZExtValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie);
|
DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user