[C++11] Add 'override' keyword to virtual methods that override their base class.
[oota-llvm.git] / tools / llvm-dis / llvm-dis.cpp
index df649cccffb1d72488ad8caba9730ddcdf6cdc5f..c6f0dcf6ae831ab0a11b76bc6ebc637f9a8ed368 100644 (file)
@@ -66,11 +66,11 @@ static void printDebugLoc(const DebugLoc &DL, formatted_raw_ostream &OS) {
 class CommentWriter : public AssemblyAnnotationWriter {
 public:
   void emitFunctionAnnot(const Function *F,
-                         formatted_raw_ostream &OS) {
+                         formatted_raw_ostream &OS) override {
     OS << "; [#uses=" << F->getNumUses() << ']';  // Output # uses
     OS << '\n';
   }
-  void printInfoComment(const Value &V, formatted_raw_ostream &OS) {
+  void printInfoComment(const Value &V, formatted_raw_ostream &OS) override {
     bool Padded = false;
     if (!V.getType()->isVoidTy()) {
       OS.PadToColumn(50);