[llvm-commits] [dragonegg] r144653 - in /dragonegg/trunk: include/dragonegg/Debug.h src/Convert.cpp src/Debug.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Nov 15 10:13:19 PST 2011
Author: d0k
Date: Tue Nov 15 12:13:19 2011
New Revision: 144653
URL: http://llvm.org/viewvc/llvm-project?rev=144653&view=rev
Log:
Remove uses of Value::getNameStr from DragonEgg.
Modified:
dragonegg/trunk/include/dragonegg/Debug.h
dragonegg/trunk/src/Convert.cpp
dragonegg/trunk/src/Debug.cpp
Modified: dragonegg/trunk/include/dragonegg/Debug.h
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/include/dragonegg/Debug.h?rev=144653&r1=144652&r2=144653&view=diff
==============================================================================
--- dragonegg/trunk/include/dragonegg/Debug.h (original)
+++ dragonegg/trunk/include/dragonegg/Debug.h Tue Nov 15 12:13:19 2011
@@ -307,7 +307,7 @@
/// EmitDeclare - Constructs the debug code for allocation of a new variable.
/// region - "llvm.dbg.declare."
- void EmitDeclare(tree_node *decl, unsigned Tag, const char *Name,
+ void EmitDeclare(tree_node *decl, unsigned Tag, StringRef Name,
tree_node *type, Value *AI, LLVMBuilder &Builder);
/// EmitStopPoint - Emit a call to llvm.dbg.stoppoint to indicate a change of
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=144653&r1=144652&r2=144653&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Tue Nov 15 12:13:19 2011
@@ -1862,12 +1862,10 @@
if (EmitDebugInfo()) {
if (DECL_NAME(decl)) {
TheDebugInfo->EmitDeclare(decl, dwarf::DW_TAG_auto_variable,
- AI->getNameStr().c_str(), TREE_TYPE(decl), AI,
- Builder);
+ AI->getName(), TREE_TYPE(decl), AI, Builder);
} else if (TREE_CODE(decl) == RESULT_DECL) {
TheDebugInfo->EmitDeclare(decl, dwarf::DW_TAG_return_variable,
- AI->getNameStr().c_str(), TREE_TYPE(decl), AI,
- Builder);
+ AI->getName(), TREE_TYPE(decl), AI, Builder);
}
}
}
Modified: dragonegg/trunk/src/Debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Debug.cpp?rev=144653&r1=144652&r2=144653&view=diff
==============================================================================
--- dragonegg/trunk/src/Debug.cpp (original)
+++ dragonegg/trunk/src/Debug.cpp Tue Nov 15 12:13:19 2011
@@ -372,7 +372,7 @@
}
/// EmitDeclare - Constructs the debug code for allocation of a new variable.
-void DebugInfo::EmitDeclare(tree decl, unsigned Tag, const char *Name,
+void DebugInfo::EmitDeclare(tree decl, unsigned Tag, StringRef Name,
tree type, Value *AI, LLVMBuilder &Builder) {
// Ignore compiler generated temporaries.
More information about the llvm-commits
mailing list