]> granicus.if.org Git - llvm/commitdiff
[IR] Accept 'const Type &' in the Type operator<<. NFC.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 15 Feb 2017 20:38:22 +0000 (20:38 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 15 Feb 2017 20:38:22 +0000 (20:38 +0000)
Type::print is const; there's no reason for the operator not to be.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295227 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Type.h

index 778ee06169f1717ba0f52d7000d9aeed7be9aed2..feb69187158b4c2177db843ef14b64174e68dfee 100644 (file)
@@ -423,7 +423,7 @@ private:
 };
 
 // Printing of types.
-static inline raw_ostream &operator<<(raw_ostream &OS, Type &T) {
+static inline raw_ostream &operator<<(raw_ostream &OS, const Type &T) {
   T.print(OS);
   return OS;
 }