summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombine.h
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-12-02 01:26:24 +0000
committerChad Rosier <mcrosier@apple.com>2011-12-02 01:26:24 +0000
commit43a33066b42176e52707853c8570753bc60e6693 (patch)
tree868101cc6eb370ec9148fcf4b75aad4dd113c561 /llvm/lib/Transforms/InstCombine/InstCombine.h
parent6d6d1071676d62bb649291e52792c4f8c7157fe3 (diff)
downloadbcm5719-llvm-43a33066b42176e52707853c8570753bc60e6693.tar.gz
bcm5719-llvm-43a33066b42176e52707853c8570753bc60e6693.zip
Fix a few more places where TargetData/TargetLibraryInfo is not being passed.
Add FIXMEs to places that are non-trivial to fix. llvm-svn: 145661
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombine.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombine.h b/llvm/lib/Transforms/InstCombine/InstCombine.h
index c4c793285c9..464e9d0a610 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombine.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombine.h
@@ -97,6 +97,8 @@ public:
TargetData *getTargetData() const { return TD; }
+ TargetLibraryInfo *getTargetLibraryInfo() const { return TLI; }
+
// Visitation implementation - Implement instruction combining for different
// instruction types. The semantics are as follows:
// Return Value:
OpenPOWER on IntegriCloud