mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a606b70cf5
commit
cb12903147
@ -49,7 +49,10 @@ void CodeEmitterGen::reverseBits(std::vector<Record*> &Insts) {
|
||||
}
|
||||
|
||||
|
||||
int CodeEmitterGen::getVariableBit(const std::string &VarName, BitsInit *BI, int bit){
|
||||
// If the VarBitInit at position 'bit' matches the specified variable then
|
||||
// return the variable bit position. Otherwise return -1.
|
||||
int CodeEmitterGen::getVariableBit(const std::string &VarName,
|
||||
BitsInit *BI, int bit) {
|
||||
if (VarBitInit *VBI = dynamic_cast<VarBitInit*>(BI->getBit(bit))) {
|
||||
TypedInit *TI = VBI->getVariable();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user