[llvm-commits] [llvm-gcc-4.2] r103734 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Thu May 13 13:22:07 PDT 2010
Author: dpatel
Date: Thu May 13 15:22:07 2010
New Revision: 103734
URL: http://llvm.org/viewvc/llvm-project?rev=103734&view=rev
Log:
Update comments.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
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=103734&r1=103733&r2=103734&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Thu May 13 15:22:07 2010
@@ -290,8 +290,7 @@
setCurrentLexicalBlock(desired);
}
-/// EmitFunctionStart - Constructs the debug code for entering a function -
-/// "llvm.dbg.func.start."
+/// EmitFunctionStart - Constructs the debug code for entering a function.
void DebugInfo::EmitFunctionStart(tree FnDecl, Function *Fn,
BasicBlock *CurBB) {
setCurrentLexicalBlock(FnDecl);
@@ -426,8 +425,7 @@
return getOrCreateFile(main_input_filename);
}
-/// EmitFunctionEnd - Constructs the debug code for exiting a declarative
-/// region - "llvm.dbg.region.end."
+/// EmitFunctionEnd - Pop the region stack and reset current lexical block.
void DebugInfo::EmitFunctionEnd(BasicBlock *CurBB, bool EndFunction) {
assert(!RegionStack.empty() && "Region stack mismatch, stack empty!");
RegionStack.pop_back();
@@ -442,7 +440,6 @@
}
/// EmitDeclare - Constructs the debug code for allocation of a new variable.
-/// region - "llvm.dbg.declare."
void DebugInfo::EmitDeclare(tree decl, unsigned Tag, const char *Name,
tree type, Value *AI, LLVMBuilder &Builder) {
@@ -469,9 +466,8 @@
Name, getOrCreateFile(Loc.file),
Loc.line, Ty);
- // Insert an llvm.dbg.declare into the current block.
- Instruction *Call = DebugFactory.InsertDeclare(AI, D,
- Builder.GetInsertBlock());
+ Instruction *Call =
+ DebugFactory.InsertDeclare(AI, D, Builder.GetInsertBlock());
Call->setDebugLoc(DebugLoc::get(CurLineNo, 0, VarScope));
}
@@ -499,8 +495,7 @@
return false;
}
-/// EmitStopPoint - Emit a call to llvm.dbg.stoppoint to indicate a change of
-/// source line - "llvm.dbg.stoppoint." Now enabled at -O.
+/// EmitStopPoint - Set current source location.
void DebugInfo::EmitStopPoint(Function *Fn, BasicBlock *CurBB,
LLVMBuilder &Builder) {
// Don't bother if things are the same as last time.
More information about the llvm-commits
mailing list