[Bitcode] Diagnose errors instead of asserting from bad input
[oota-llvm.git] / include / llvm / Bitcode / BitcodeWriterPass.h
index e423954d52c42c3a49a2b02442d0578ee9f25790..8fe9b7e8434d4f52b0d07b22aa74ac4bb6d55f51 100644 (file)
@@ -12,8 +12,8 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_BITCODE_BITCODE_WRITER_PASS_H
-#define LLVM_BITCODE_BITCODE_WRITER_PASS_H
+#ifndef LLVM_BITCODE_BITCODEWRITERPASS_H
+#define LLVM_BITCODE_BITCODEWRITERPASS_H
 
 #include "llvm/ADT/StringRef.h"
 
@@ -40,8 +40,8 @@ public:
   explicit BitcodeWriterPass(raw_ostream &OS) : OS(OS) {}
 
   /// \brief Run the bitcode writer pass, and output the module to the selected
-  /// \brief output stream.
-  PreservedAnalyses run(Module *M);
+  /// output stream.
+  PreservedAnalyses run(Module &M);
 
   static StringRef name() { return "BitcodeWriterPass"; }
 };