[llvm-commits] [llvm-gcc-4.2] r83425 - in /llvm-gcc-4.2/trunk/gcc: llvm-convert.cpp llvm-debug.cpp llvm-debug.h
Devang Patel
dpatel at apple.com
Tue Oct 6 15:33:40 PDT 2009
Author: dpatel
Date: Tue Oct 6 17:33:39 2009
New Revision: 83425
URL: http://llvm.org/viewvc/llvm-project?rev=83425&view=rev
Log:
- Remove EmitRegionStart().
- s/EmitRegionEnd/EmitFunctionEnd/g
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
llvm-gcc-4.2/trunk/gcc/llvm-debug.h
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=83425&r1=83424&r2=83425&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Tue Oct 6 17:33:39 2009
@@ -696,7 +696,7 @@
}
if (TheDebugInfo) {
TheDebugInfo->EmitStopPoint(Fn, Builder.GetInsertBlock());
- TheDebugInfo->EmitRegionEnd(Builder.GetInsertBlock(), true);
+ TheDebugInfo->EmitFunctionEnd(Builder.GetInsertBlock(), true);
}
if (RetVals.empty())
Builder.CreateRetVoid();
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=83425&r1=83424&r2=83425&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Tue Oct 6 17:33:39 2009
@@ -288,20 +288,9 @@
return getOrCreateCompileUnit(main_input_filename);
}
-/// EmitRegionStart- Constructs the debug code for entering a declarative
-/// region - "llvm.dbg.region.start."
-void DebugInfo::EmitRegionStart(BasicBlock *CurBB) {
- llvm::DIDescriptor D;
- if (!RegionStack.empty())
- D = RegionStack.back();
- D = DebugFactory.CreateLexicalBlock(D);
- RegionStack.push_back(D);
- DebugFactory.InsertRegionStart(D, CurBB);
-}
-
-/// EmitRegionEnd - Constructs the debug code for exiting a declarative
+/// EmitFunctionEnd - Constructs the debug code for exiting a declarative
/// region - "llvm.dbg.region.end."
-void DebugInfo::EmitRegionEnd(BasicBlock *CurBB, bool EndFunction) {
+void DebugInfo::EmitFunctionEnd(BasicBlock *CurBB, bool EndFunction) {
assert(!RegionStack.empty() && "Region stack mismatch, stack empty!");
DebugFactory.InsertRegionEnd(RegionStack.back(), CurBB);
RegionStack.pop_back();
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.h?rev=83425&r1=83424&r2=83425&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.h Tue Oct 6 17:33:39 2009
@@ -84,13 +84,9 @@
/// "llvm.dbg.func.start."
void EmitFunctionStart(tree_node *FnDecl, Function *Fn, BasicBlock *CurBB);
- /// EmitRegionStart- Constructs the debug code for entering a declarative
- /// region - "llvm.dbg.region.start."
- void EmitRegionStart(BasicBlock *CurBB);
-
- /// EmitRegionEnd - Constructs the debug code for exiting a declarative
+ /// EmitFunctionEnd - Constructs the debug code for exiting a declarative
/// region - "llvm.dbg.region.end."
- void EmitRegionEnd(BasicBlock *CurBB, bool EndFunction);
+ void EmitFunctionEnd(BasicBlock *CurBB, bool EndFunction);
/// EmitDeclare - Constructs the debug code for allocation of a new variable.
/// region - "llvm.dbg.declare."
More information about the llvm-commits
mailing list