aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-09-18 22:08:59 +0000
committerAdrian Prantl <aprantl@apple.com>2013-09-18 22:08:59 +0000
commit0a4371a2073d8841768cf3e8cf65601a8d7cc4fc (patch)
treeeed35444b6249b58112877ed7f057dae4120ac6f /include/llvm/MC
parent51279d45f787758acca1a885f9cb979c5b0033cc (diff)
downloadexternal_llvm-0a4371a2073d8841768cf3e8cf65601a8d7cc4fc.zip
external_llvm-0a4371a2073d8841768cf3e8cf65601a8d7cc4fc.tar.gz
external_llvm-0a4371a2073d8841768cf3e8cf65601a8d7cc4fc.tar.bz2
Debug info: Get rid of the VLA indirection hack in FastISel.
Use the DIVariable::isIndirect() flag set by the frontend instead of guessing whether to set the machine location's indirection bit. Paired commit with CFE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MachineLocation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/MC/MachineLocation.h b/include/llvm/MC/MachineLocation.h
index c4a9660..7d9abc3 100644
--- a/include/llvm/MC/MachineLocation.h
+++ b/include/llvm/MC/MachineLocation.h
@@ -44,7 +44,8 @@ public:
Offset == Other.Offset;
}
- // Accessors
+ // Accessors.
+ /// \return true iff this is a register-indirect location.
bool isIndirect() const { return !IsRegister; }
bool isReg() const { return IsRegister; }
unsigned getReg() const { return Register; }