[PATCH] D18583: Cloning: Reduce complexity of debug info cloning and fix correctness issue.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 30 14:35:26 PDT 2016
pcc added inline comments.
================
Comment at: lib/Transforms/Utils/CloneFunction.cpp:198-199
@@ -188,4 +197,4 @@
// Clone the module-level debug info associated with OldFunc. The cloned data
// will point to NewFunc instead.
-void llvm::CloneDebugInfoMetadata(Function *NewFunc, const Function *OldFunc,
- ValueToValueMapTy &VMap) {
+static void CloneDebugInfoMetadata(Function *NewFunc, const Function *OldFunc,
+ ValueToValueMapTy &VMap) {
----------------
I have a followup patch which will completely remove this function.
http://reviews.llvm.org/D18583
More information about the llvm-commits
mailing list