Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Unified Diff: lib/Transforms/NaCl/GlobalizeConstantVectors.cpp

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/Transforms/NaCl/GlobalizeConstantVectors.cpp
diff --git a/lib/Transforms/NaCl/GlobalizeConstantVectors.cpp b/lib/Transforms/NaCl/GlobalizeConstantVectors.cpp
index 748dfdec7f8bd42480a96fb219cc7f6c68087245..2eb59ce6155e19a592640d183669921dc6c8d3c2 100644
--- a/lib/Transforms/NaCl/GlobalizeConstantVectors.cpp
+++ b/lib/Transforms/NaCl/GlobalizeConstantVectors.cpp
@@ -40,7 +40,6 @@ public:
}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesCFG();
- AU.addRequired<DataLayoutPass>();
}
virtual bool runOnModule(Module &M);
@@ -151,7 +150,7 @@ void GlobalizeConstantVectors::materializeConstantVectors(
}
bool GlobalizeConstantVectors::runOnModule(Module &M) {
- DL = &getAnalysis<DataLayoutPass>().getDataLayout();
+ DL = &M.getDataLayout();
FunctionConstantList FCs;
FCs.reserve(M.size());

Powered by Google App Engine
This is Rietveld 408576698