OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60cfc03
)
Check exisiting dbg MDKind first.
author
Devang Patel
<dpatel@apple.com>
Tue, 22 Sep 2009 20:54:13 +0000
(20:54 +0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 22 Sep 2009 20:54:13 +0000
(20:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82568
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/IRBuilder.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/IRBuilder.h
b/include/llvm/Support/IRBuilder.h
index
b1f4354
..
a948e9f
100644
(file)
--- a/
include/llvm/Support/IRBuilder.h
+++ b/
include/llvm/Support/IRBuilder.h
@@
-134,10
+134,10
@@
public:
/// SetCurrentLocation - This specifies the location information used
/// by debugging information.
void SetCurrentLocation(MDNode *L) {
- if (MDKind == 0) {
- Context.getMetadata().RegisterMDKind("dbg");
+ if (MDKind == 0)
MDKind = Context.getMetadata().getMDKind("dbg");
- }
+ if (MDKind == 0)
+ MDKind = Context.getMetadata().RegisterMDKind("dbg");
CurLocation = L;
}