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

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

Issue 14262011: PNaCl: Add ReplacePtrsWithInts pass for stripping out pointer types (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Fix alloca alignment Created 7 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/ExpandUtils.cpp
diff --git a/lib/Transforms/NaCl/ExpandUtils.cpp b/lib/Transforms/NaCl/ExpandUtils.cpp
index 0670ff75ce1e737cbac1378363a23b69201d7cc8..507760603f56a3ea3496b8d95cb7ce2a1fd718ab 100644
--- a/lib/Transforms/NaCl/ExpandUtils.cpp
+++ b/lib/Transforms/NaCl/ExpandUtils.cpp
@@ -38,3 +38,8 @@ void llvm::PhiSafeReplaceUses(Use *U, Value *NewVal) {
U->getUser()->replaceUsesOfWith(U->get(), NewVal);
}
}
+
+Instruction *llvm::CopyDebug(Instruction *NewInst, Instruction *Original) {
eliben 2013/05/20 22:18:49 Somewhere a comment should say what this does and
Mark Seaborn 2013/05/21 23:12:07 Added comment in header.
+ NewInst->setDebugLoc(Original->getDebugLoc());
+ return NewInst;
+}

Powered by Google App Engine
This is Rietveld 408576698