aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-01-28 01:19:52 +0000
committerBill Wendling <isanbard@gmail.com>2009-01-28 01:19:52 +0000
commit42ce8eaa8c5af9c29825737ce337e6e2397ab6a6 (patch)
tree7d6d8f5e7ebce0defc740683f34ff4175c2cb485
parentd1e7d9a88b5f4fa5e9a85affc4599c650c591ffb (diff)
downloadexternal_llvm-42ce8eaa8c5af9c29825737ce337e6e2397ab6a6.zip
external_llvm-42ce8eaa8c5af9c29825737ce337e6e2397ab6a6.tar.gz
external_llvm-42ce8eaa8c5af9c29825737ce337e6e2397ab6a6.tar.bz2
Comment fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63164 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/DebugLoc.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h
index 89c51c4..b89bf63 100644
--- a/include/llvm/CodeGen/DebugLoc.h
+++ b/include/llvm/CodeGen/DebugLoc.h
@@ -9,6 +9,8 @@
//
// This file defines a number of light weight data structures used by the code
// generator to describe and track debug location information.
+//
+//===----------------------------------------------------------------------===//
#ifndef LLVM_CODEGEN_DEBUGLOC_H
#define LLVM_CODEGEN_DEBUGLOC_H
@@ -27,8 +29,8 @@ namespace llvm {
: Src(s), Line(l), Col(c) {};
};
- /// DebugLoc - Debug location id. This is carried by SDNode and
- /// MachineInstr to index into a vector of unique debug location tuples.
+ /// DebugLoc - Debug location id. This is carried by SDNode and MachineInstr
+ /// to index into a vector of unique debug location tuples.
class DebugLoc {
unsigned Idx;
@@ -38,11 +40,11 @@ namespace llvm {
static DebugLoc getUnknownLoc() { DebugLoc L; L.Idx = 0; return L; }
static DebugLoc get(unsigned idx) { DebugLoc L; L.Idx = idx; return L; }
- // isInvalid - Return true if the DebugLoc is invalid.
+ /// isInvalid - Return true if the DebugLoc is invalid.
bool isInvalid() const { return Idx == ~0U; }
- // isUnknown - Return true if there is no debug info for the SDNode /
- // MachineInstr.
+ /// isUnknown - Return true if there is no debug info for the SDNode /
+ /// MachineInstr.
bool isUnknown() const { return Idx == 0; }
};
@@ -71,12 +73,12 @@ namespace llvm {
/// DebugLocTracker - This class tracks debug location information.
///
struct DebugLocTracker {
- // DebugLocations - A vector of unique DebugLocTuple's.
- //
+ /// DebugLocations - A vector of unique DebugLocTuple's.
+ ///
std::vector<DebugLocTuple> DebugLocations;
- // DebugIdsMap - This maps DebugLocTuple's to indices into
- // DebugLocations vector.
+ /// DebugIdsMap - This maps DebugLocTuple's to indices into DebugLocations
+ /// vector.
DenseMap<DebugLocTuple, unsigned> DebugIdMap;
DebugLocTracker() {}