mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
improve a comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
198f34ac35
commit
51d5f29c3f
@ -572,8 +572,9 @@ static void WriteModule(const Module *M, BitstreamWriter &Stream) {
|
|||||||
// Emit constants.
|
// Emit constants.
|
||||||
WriteModuleConstants(VE, Stream);
|
WriteModuleConstants(VE, Stream);
|
||||||
|
|
||||||
// FIXME: Purge aggregate values from the VE, emit a record that indicates how
|
// If we have any aggregate values in the value table, purge them - these can
|
||||||
// many to purge.
|
// only be used to initialize global variables. Doing so makes the value
|
||||||
|
// namespace smaller for code in functions.
|
||||||
int NumNonAggregates = VE.PurgeAggregateValues();
|
int NumNonAggregates = VE.PurgeAggregateValues();
|
||||||
if (NumNonAggregates != -1) {
|
if (NumNonAggregates != -1) {
|
||||||
SmallVector<unsigned, 1> Vals;
|
SmallVector<unsigned, 1> Vals;
|
||||||
@ -583,6 +584,7 @@ static void WriteModule(const Module *M, BitstreamWriter &Stream) {
|
|||||||
|
|
||||||
// Emit function bodies.
|
// Emit function bodies.
|
||||||
for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I)
|
for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I)
|
||||||
|
if (!I->isDeclaration())
|
||||||
WriteFunction(*I, VE, Stream);
|
WriteFunction(*I, VE, Stream);
|
||||||
|
|
||||||
// Emit the type symbol table information.
|
// Emit the type symbol table information.
|
||||||
|
Loading…
Reference in New Issue
Block a user