DataLayout now returns a const ref to its member string representation
[oota-llvm.git] / include / llvm / IR / Module.h
index 4bc03fb574f791cc02b5f7c696c12bf5fec76fbc..1668b95c8bd1e7662939262f57323d6acdac73e1 100644 (file)
@@ -249,7 +249,7 @@ public:
 
   /// Get the data layout string for the module's target platform. This is
   /// equivalent to getDataLayout()->getStringRepresentation().
-  const std::string getDataLayoutStr() const {
+  const std::string &getDataLayoutStr() const {
     return DL.getStringRepresentation();
   }