mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Align comments, colons and cases. Remove trailing
whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53453 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f26c188f8
commit
569d8f7087
@ -79,10 +79,10 @@ struct ValID {
|
||||
|
||||
union {
|
||||
unsigned Num; // If it's a numeric reference like %1234
|
||||
std::string *Name; // If it's a named reference. Memory must be deleted.
|
||||
std::string *Name; // If it's a named reference. Memory must be deleted.
|
||||
int64_t ConstPool64; // Constant pool reference. This is the value
|
||||
uint64_t UConstPool64; // Unsigned constant pool reference.
|
||||
APSInt *ConstPoolInt; // Large Integer constant pool reference
|
||||
APSInt *ConstPoolInt; // Large Integer constant pool reference
|
||||
APFloat *ConstPoolFP; // Floating point constant pool reference
|
||||
Constant *ConstantValue; // Fully resolved constant for ConstantVal case.
|
||||
InlineAsmDescriptor *IAD;
|
||||
@ -197,12 +197,12 @@ struct ValID {
|
||||
case GlobalName: return *Name < *V.Name;
|
||||
case ConstSIntVal: return ConstPool64 < V.ConstPool64;
|
||||
case ConstUIntVal: return UConstPool64 < V.UConstPool64;
|
||||
case ConstAPInt : return ConstPoolInt->ult(*V.ConstPoolInt);
|
||||
case ConstAPInt: return ConstPoolInt->ult(*V.ConstPoolInt);
|
||||
case ConstFPVal: return ConstPoolFP->compare(*V.ConstPoolFP) ==
|
||||
APFloat::cmpLessThan;
|
||||
case ConstNullVal: return false;
|
||||
case ConstUndefVal: return false;
|
||||
case ConstZeroVal: return false;
|
||||
case ConstZeroVal: return false;
|
||||
case ConstantVal: return ConstantValue < V.ConstantValue;
|
||||
default: assert(0 && "Unknown value type!"); return false;
|
||||
}
|
||||
@ -214,9 +214,9 @@ struct ValID {
|
||||
switch (Type) {
|
||||
default: assert(0 && "Unknown value type!");
|
||||
case LocalID:
|
||||
case GlobalID: return Num == V.Num;
|
||||
case GlobalID: return Num == V.Num;
|
||||
case LocalName:
|
||||
case GlobalName: return *Name == *(V.Name);
|
||||
case GlobalName: return *Name == *(V.Name);
|
||||
case ConstSIntVal: return ConstPool64 == V.ConstPool64;
|
||||
case ConstUIntVal: return UConstPool64 == V.UConstPool64;
|
||||
case ConstAPInt: return *ConstPoolInt == *V.ConstPoolInt;
|
||||
|
Loading…
x
Reference in New Issue
Block a user