Remove dead code. Improve llvm_unreachable text. Simplify some control flow.
[oota-llvm.git] / tools / llvm-objdump / MCFunction.h
index 4677d91bb77b241a12617af41709d2c04ddb95e0..c0362d3a43fa56048251c620c5bf9d159a5726ce 100644 (file)
@@ -79,13 +79,13 @@ public:
   // Create an MCFunction from a region of binary machine code.
   static MCFunction
   createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
-                       const MemoryObject &Region, uint64_t Start, uint64_t End,
+                       MemoryObject &Region, uint64_t Start, uint64_t End,
                        const MCInstrAnalysis *Ana, raw_ostream &DebugOut,
                        SmallVectorImpl<uint64_t> &Calls);
 
-  typedef MapTy::iterator iterator;
-  iterator begin() { return Blocks.begin(); }
-  iterator end() { return Blocks.end(); }
+  typedef MapTy::const_iterator iterator;
+  iterator begin() const { return Blocks.begin(); }
+  iterator end() const { return Blocks.end(); }
 
   StringRef getName() const { return Name; }