mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-09 22:24:37 +00:00
Minor speedup to do less linear time searches of information we already have.
speeds up disassembly of kc++ by .6s git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -180,7 +180,10 @@ private:
|
||||
Value *getValue(unsigned TypeID, unsigned num, bool Create = true);
|
||||
const Type *getType(unsigned ID);
|
||||
BasicBlock *getBasicBlock(unsigned ID);
|
||||
Constant *getConstantValue(const Type *Ty, unsigned num);
|
||||
Constant *getConstantValue(unsigned TypeID, unsigned num);
|
||||
Constant *getConstantValue(const Type *Ty, unsigned num) {
|
||||
return getConstantValue(getTypeSlot(Ty), num);
|
||||
}
|
||||
|
||||
unsigned insertValue(Value *V, ValueTable &Table);
|
||||
unsigned insertValue(Value *V, unsigned Type, ValueTable &Table);
|
||||
|
Reference in New Issue
Block a user