commit | 9e9a0d5fc26878e51a58a8b57900fcbf952c2691 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Thu Jul 30 23:03:37 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Thu Jul 30 23:03:37 2009 +0000 |
tree | 477eb7b58abe6134ff6accc805279396a77892e8 | |
parent | 124e6eb09d47674a4bac48a522e83e4513a970e5 [diff] [blame] |
Move more code back to 2.5 APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77635 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp index f2b561d..1bbda3c 100644 --- a/lib/Transforms/IPO/StripSymbols.cpp +++ b/lib/Transforms/IPO/StripSymbols.cpp
@@ -232,7 +232,7 @@ if (!GV) continue; if (!GV->use_empty() && llvmUsedValues.count(I) == 0) { if (GV->getName().startswith("llvm.dbg")) { - GV->replaceAllUsesWith(M.getContext().getUndef(GV->getType())); + GV->replaceAllUsesWith(UndefValue::get(GV->getType())); } } }