Change MRegisterInfo::foldMemoryOperand to return the folded
[oota-llvm.git] / include / llvm / SymbolTable.h
index 42f15aa626e92173e396672c95c9b7efabe6f0ad..22a9acd438ce9a2c177f29d7b14dda2907b5cdc3 100644 (file)
@@ -26,6 +26,8 @@
 #include "llvm/Value.h"
 #include <map>
 
+namespace llvm {
+
 class SymbolTable : public AbstractTypeUser,
                    public std::map<const Type *, 
                                     std::map<const std::string, Value *> > {
@@ -40,7 +42,7 @@ public:
   ~SymbolTable();
 
   // lookup - Returns null on failure...
-  Value *lookup(const Type *Ty, const std::string &name);
+  Value *lookup(const Type *Ty, const std::string &name) const;
 
   // insert - Add named definition to the symbol table...
   inline void insert(Value *N) {
@@ -132,4 +134,6 @@ private:
   virtual void typeBecameConcrete(const DerivedType *AbsTy);
 };
 
+} // End llvm namespace
+
 #endif