mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
Revert name change from r132533. Lower case naming was intended per style guidelines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132555 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c9b559bfd
commit
6a0c04dff2
@ -1205,7 +1205,7 @@ static void WriteValueSymbolTable(const ValueSymbolTable &VST,
|
|||||||
static void WriteFunction(const Function &F, ValueEnumerator &VE,
|
static void WriteFunction(const Function &F, ValueEnumerator &VE,
|
||||||
BitstreamWriter &Stream) {
|
BitstreamWriter &Stream) {
|
||||||
Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 4);
|
Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 4);
|
||||||
VE.IncorporateFunction(F);
|
VE.incorporateFunction(F);
|
||||||
|
|
||||||
SmallVector<unsigned, 64> Vals;
|
SmallVector<unsigned, 64> Vals;
|
||||||
|
|
||||||
@ -1269,7 +1269,7 @@ static void WriteFunction(const Function &F, ValueEnumerator &VE,
|
|||||||
|
|
||||||
if (NeedsMetadataAttachment)
|
if (NeedsMetadataAttachment)
|
||||||
WriteMetadataAttachment(F, VE, Stream);
|
WriteMetadataAttachment(F, VE, Stream);
|
||||||
VE.PurgeFunction();
|
VE.purgeFunction();
|
||||||
Stream.ExitBlock();
|
Stream.ExitBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -452,7 +452,7 @@ void ValueEnumerator::EnumerateAttributes(const AttrListPtr &PAL) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ValueEnumerator::IncorporateFunction(const Function &F) {
|
void ValueEnumerator::incorporateFunction(const Function &F) {
|
||||||
InstructionCount = 0;
|
InstructionCount = 0;
|
||||||
NumModuleValues = Values.size();
|
NumModuleValues = Values.size();
|
||||||
NumModuleMDValues = MDValues.size();
|
NumModuleMDValues = MDValues.size();
|
||||||
@ -516,7 +516,7 @@ void ValueEnumerator::IncorporateFunction(const Function &F) {
|
|||||||
EnumerateFunctionLocalMetadata(FnLocalMDVector[i]);
|
EnumerateFunctionLocalMetadata(FnLocalMDVector[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ValueEnumerator::PurgeFunction() {
|
void ValueEnumerator::purgeFunction() {
|
||||||
/// Remove purged values from the ValueMap.
|
/// Remove purged values from the ValueMap.
|
||||||
for (unsigned i = NumModuleValues, e = Values.size(); i != e; ++i)
|
for (unsigned i = NumModuleValues, e = Values.size(); i != e; ++i)
|
||||||
ValueMap.erase(Values[i].first);
|
ValueMap.erase(Values[i].first);
|
||||||
|
@ -127,11 +127,11 @@ public:
|
|||||||
/// should only be used by rare constructs such as address-of-label.
|
/// should only be used by rare constructs such as address-of-label.
|
||||||
unsigned getGlobalBasicBlockID(const BasicBlock *BB) const;
|
unsigned getGlobalBasicBlockID(const BasicBlock *BB) const;
|
||||||
|
|
||||||
/// IncorporateFunction/PurgeFunction - If you'd like to deal with a function,
|
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
||||||
/// use these two methods to get its data into the ValueEnumerator!
|
/// use these two methods to get its data into the ValueEnumerator!
|
||||||
///
|
///
|
||||||
void IncorporateFunction(const Function &F);
|
void incorporateFunction(const Function &F);
|
||||||
void PurgeFunction();
|
void purgeFunction();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void OptimizeConstants(unsigned CstStart, unsigned CstEnd);
|
void OptimizeConstants(unsigned CstStart, unsigned CstEnd);
|
||||||
|
Loading…
Reference in New Issue
Block a user