diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-11-08 00:51:41 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-11-08 00:51:41 +0000 |
commit | 454ff53d58ac73c1c8223d1fbf8732181f671c00 (patch) | |
tree | f083e20bdddded81ebdbae073eb3106c55f09a61 /llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | |
parent | d70bd617581214c11241fb90edc3e2146735d3ba (diff) | |
download | bcm5719-llvm-454ff53d58ac73c1c8223d1fbf8732181f671c00.tar.gz bcm5719-llvm-454ff53d58ac73c1c8223d1fbf8732181f671c00.zip |
Use ARMFunctionInfo to track number of constpool entries and jumptables.
llvm-svn: 58877
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index 5d1384763bd..16de61524df 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -47,9 +47,6 @@ namespace { /// CPE - A constant pool entry that has been placed somewhere, which /// tracks a list of users. class VISIBILITY_HIDDEN ARMConstantIslands : public MachineFunctionPass { - /// NextUID - Assign unique ID's to CPE's. - unsigned NextUID; - /// BBSizes - The size of each MachineBasicBlock in bytes of code, indexed /// by MBB Number. The two-byte pads required for Thumb alignment are /// counted as part of the following block (i.e., the offset and size for @@ -237,7 +234,7 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &Fn) { } /// The next UID to take is the first unused one. - NextUID = CPEMIs.size(); + AFI->initConstPoolEntryUId(CPEMIs.size()); // Do the initial scan of the function, building up information about the // sizes of each block, the location of all the water, and finding all of the @@ -1019,7 +1016,7 @@ bool ARMConstantIslands::HandleConstantPoolUser(MachineFunction &Fn, // No existing clone of this CPE is within range. // We will be generating a new clone. Get a UID for it. - unsigned ID = NextUID++; + unsigned ID = AFI->createConstPoolEntryUId(); // Look for water where we can place this CPE. We look for the farthest one // away that will work. Forward references only for now (although later |