aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/BasicTargetTransformInfo.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-01-07 15:14:13 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-01-07 15:14:13 +0000
commit56d433dffe02e14cafaab44d2628e20dc0bf26fe (patch)
treec68fa6b5f3449253eaa889cd05597a3b81377878 /lib/CodeGen/BasicTargetTransformInfo.cpp
parenta07dcb1498ab1b1048bd03c664f3b7eb1f64310d (diff)
Sink AddrMode back into TargetLowering, removing one of the most
peculiar headers under include/llvm. This struct still doesn't make a lot of sense, but it makes more sense down in TargetLowering than it did before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BasicTargetTransformInfo.cpp')
-rw-r--r--lib/CodeGen/BasicTargetTransformInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/BasicTargetTransformInfo.cpp b/lib/CodeGen/BasicTargetTransformInfo.cpp
index 29f52606c2..c27e081a5e 100644
--- a/lib/CodeGen/BasicTargetTransformInfo.cpp
+++ b/lib/CodeGen/BasicTargetTransformInfo.cpp
@@ -126,7 +126,7 @@ bool BasicTTI::isLegalICmpImmediate(int64_t imm) const {
bool BasicTTI::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
int64_t BaseOffset, bool HasBaseReg,
int64_t Scale) const {
- AddrMode AM;
+ TargetLowering::AddrMode AM;
AM.BaseGV = BaseGV;
AM.BaseOffs = BaseOffset;
AM.HasBaseReg = HasBaseReg;