diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-03 07:51:10 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-03 07:51:10 +0000 | 
| commit | b5efedaf2ab20d844d5a21cdef76b55acbf4f01c (patch) | |
| tree | ba3309de92b14839b2ca6ca0c6d3b39714f95d4c /include/llvm/CodeGen/MachineModuleInfo.h | |
| parent | 104bd8179fb5f6551c65c94ebcd0a4918b060189 (diff) | |
Notes
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
| -rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index d446eaeb7f49e..d610390b63575 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -37,6 +37,7 @@  #include "llvm/CodeGen/MachineLocation.h"  #include "llvm/MC/MCContext.h"  #include "llvm/Support/Dwarf.h" +#include "llvm/Support/DebugLoc.h"  #include "llvm/Support/ValueHandle.h"  #include "llvm/System/DataTypes.h"  #include "llvm/ADT/DenseMap.h" @@ -156,8 +157,8 @@ class MachineModuleInfo : public ImmutablePass {  public:    static char ID; // Pass identification, replacement for typeid -  typedef std::pair<unsigned, TrackingVH<MDNode> > UnsignedAndMDNodePair; -  typedef SmallVector< std::pair<TrackingVH<MDNode>, UnsignedAndMDNodePair>, 4> +  typedef std::pair<unsigned, DebugLoc> UnsignedDebugLocPair; +  typedef SmallVector<std::pair<TrackingVH<MDNode>, UnsignedDebugLocPair>, 4>      VariableDbgInfoMapTy;    VariableDbgInfoMapTy VariableDbgInfo; @@ -330,10 +331,10 @@ public:    /// of one is required to emit exception handling info.    Function *getPersonality() const; -  /// setVariableDbgInfo - Collect information used to emit debugging information -  /// of a variable. -  void setVariableDbgInfo(MDNode *N, unsigned Slot, MDNode *Scope) { -    VariableDbgInfo.push_back(std::make_pair(N, std::make_pair(Slot, Scope))); +  /// setVariableDbgInfo - Collect information used to emit debugging +  /// information of a variable. +  void setVariableDbgInfo(MDNode *N, unsigned Slot, DebugLoc Loc) { +    VariableDbgInfo.push_back(std::make_pair(N, std::make_pair(Slot, Loc)));    }    VariableDbgInfoMapTy &getVariableDbgInfo() {  return VariableDbgInfo;  }  | 
