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; |
+} |