Update comment and include guard.
[oota-llvm.git] / include / llvm / MC / MCAsmLayout.h
index d942e273a4c602b986033ee4de63de2142127a08..f048e34671db4c42d569062c1381410fa9ef22e4 100644 (file)
@@ -17,6 +17,7 @@ namespace llvm {
 class MCAssembler;
 class MCFragment;
 class MCSectionData;
+class MCSymbol;
 class MCSymbolData;
 
 /// Encapsulates the layout of an assembly file at a particular point in time.
@@ -108,6 +109,9 @@ public:
   /// \brief Variant that reports a fatal error if the offset is not computable.
   uint64_t getSymbolOffset(const MCSymbolData *SD) const;
 
+  /// \brief If this symbol is equivalent to A + Constant, return A.
+  const MCSymbol *getBaseSymbol(const MCSymbol &Symbol) const;
+
   /// @}
 };