X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FCodeGen%2FAsmPrinter%2FDwarfCompileUnit.h;fp=lib%2FCodeGen%2FAsmPrinter%2FDwarfCompileUnit.h;h=27cfdcdaa4834fd82c6676e425b862d296c286ec;hp=787ac23eb036341c91d0929b0613e6fc58ae1a87;hb=dc1d16ae54aceebdecc7262b2ef806387f98ace3;hpb=8d7cc6b0ff5a543cc543732b07e3fb637bc4b619;ds=sidebyside diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 787ac23eb03..27cfdcdaa48 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -55,6 +55,10 @@ class DwarfCompileUnit : public DwarfUnit { // List of ranges for a given compile unit. SmallVector CURanges; + // The base address of this unit, if any. Used for relative references in + // ranges/locs. + const MCSymbol *BaseAddress; + /// \brief Construct a DIE for the given DbgVariable without initializing the /// DbgVariable's DIE reference. std::unique_ptr constructVariableDIEImpl(const DbgVariable &DV, @@ -233,6 +237,9 @@ public: /// getRanges - Get the list of ranges for this unit. const SmallVectorImpl &getRanges() const { return CURanges; } + + void setBaseAddress(const MCSymbol *Base) { BaseAddress = Base; } + const MCSymbol *getBaseAddress() const { return BaseAddress; } }; } // end llvm namespace