Cleanup places that passed SMLoc by const reference to pass it by value instead. NFC
[oota-llvm.git] / include / llvm / MC / MCParser / MCAsmLexer.h
index 644dbd90997a5dbf8c62cd6e2374c6fae8601700..64a6c9c1c98a8f987c8bdaeb83c800c61e1f513c 100644 (file)
@@ -135,7 +135,7 @@ protected: // Can only create subclasses.
 
   virtual AsmToken LexToken() = 0;
 
-  void SetError(const SMLoc &errLoc, const std::string &err) {
+  void SetError(SMLoc errLoc, const std::string &err) {
     ErrLoc = errLoc;
     Err = err;
   }
@@ -179,7 +179,7 @@ public:
                             bool ShouldSkipSpace = true) = 0;
 
   /// Get the current error location
-  const SMLoc &getErrLoc() {
+  SMLoc getErrLoc() {
     return ErrLoc;
   }