mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
minor cleanups. Add provisions for a new standard BLOCKINFO_BLOCK
block type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -194,7 +194,7 @@ public:
|
||||
void EmitRecord(unsigned Code, SmallVectorImpl<uint64_t> &Vals,
|
||||
unsigned Abbrev = 0) {
|
||||
if (Abbrev) {
|
||||
unsigned AbbrevNo = Abbrev-bitc::FIRST_ABBREV;
|
||||
unsigned AbbrevNo = Abbrev-bitc::FIRST_APPLICATION_ABBREV;
|
||||
assert(AbbrevNo < CurAbbrevs.size() && "Invalid abbrev #!");
|
||||
BitCodeAbbrev *Abbv = CurAbbrevs[AbbrevNo];
|
||||
|
||||
@@ -247,7 +247,7 @@ public:
|
||||
void EmitRecord(unsigned Code, SmallVectorImpl<unsigned> &Vals,
|
||||
unsigned Abbrev = 0) {
|
||||
if (Abbrev) {
|
||||
unsigned AbbrevNo = Abbrev-bitc::FIRST_ABBREV;
|
||||
unsigned AbbrevNo = Abbrev-bitc::FIRST_APPLICATION_ABBREV;
|
||||
assert(AbbrevNo < CurAbbrevs.size() && "Invalid abbrev #!");
|
||||
BitCodeAbbrev *Abbv = CurAbbrevs[AbbrevNo];
|
||||
|
||||
@@ -318,7 +318,7 @@ public:
|
||||
}
|
||||
|
||||
CurAbbrevs.push_back(Abbv);
|
||||
return CurAbbrevs.size()-1+bitc::FIRST_ABBREV;
|
||||
return CurAbbrevs.size()-1+bitc::FIRST_APPLICATION_ABBREV;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user