[llvm-commits] [llvm-gcc-4.2] r66802 - in /llvm-gcc-4.2/trunk/gcc: llvm-convert.cpp llvm-debug.cpp llvm-debug.h
Devang Patel
dpatel at apple.com
Thu Mar 12 11:10:18 PDT 2009
Author: dpatel
Date: Thu Mar 12 13:10:17 2009
New Revision: 66802
URL: http://llvm.org/viewvc/llvm-project?rev=66802&view=rev
Log:
Cosmetic changes. Eleminate extra argument from EmitRegionEnd.
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=66802&r1=66801&r2=66802&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Thu Mar 12 13:10:17 2009
@@ -666,7 +666,10 @@
}
}
}
- if (TheDebugInfo) TheDebugInfo->EmitRegionEnd(Fn, Builder.GetInsertBlock());
+ if (TheDebugInfo) {
+ TheDebugInfo->EmitStopPoint(Fn, Builder.GetInsertBlock());
+ TheDebugInfo->EmitRegionEnd(Builder.GetInsertBlock());
+ }
if (RetVals.empty())
Builder.CreateRetVoid();
else if (!Fn->getReturnType()->isAggregateType()) {
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=66802&r1=66801&r2=66802&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Thu Mar 12 13:10:17 2009
@@ -273,13 +273,8 @@
/// EmitRegionEnd - Constructs the debug code for exiting a declarative
/// region - "llvm.dbg.region.end."
-void DebugInfo::EmitRegionEnd(Function *Fn, BasicBlock *CurBB) {
-
+void DebugInfo::EmitRegionEnd(BasicBlock *CurBB) {
assert(!RegionStack.empty() && "Region stack mismatch, stack empty!");
-
- // Provide an region stop point.
- EmitStopPoint(Fn, CurBB);
-
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=66802&r1=66801&r2=66802&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.h Thu Mar 12 13:10:17 2009
@@ -89,7 +89,7 @@
/// EmitRegionEnd - Constructs the debug code for exiting a declarative
/// region - "llvm.dbg.region.end."
- void EmitRegionEnd(Function *Fn, BasicBlock *CurBB);
+ void EmitRegionEnd(BasicBlock *CurBB);
/// EmitDeclare - Constructs the debug code for allocation of a new variable.
/// region - "llvm.dbg.declare."
More information about the llvm-commits
mailing list