Modify LTOModule::isTargetMatch to take a StringRef instead of a MemoryBuffer.
[oota-llvm.git] / include / llvm / LTO / LTOModule.h
index 46cb034cb6ea3510688cd76b7d974ca01abecf5a..64c066e6520e6750c8172b5e01a520660001626e 100644 (file)
@@ -202,8 +202,8 @@ private:
   /// Get string that the data pointer points to.
   bool objcClassNameFromExpression(const Constant *c, std::string &name);
 
-  /// Returns 'true' if the memory buffer is for the specified target triple.
-  static bool isTargetMatch(MemoryBuffer *memBuffer, const char *triplePrefix);
+  /// Returns 'true' if the bitcode BC is for the specified target triple.
+  static bool isTargetMatch(StringRef BC, const char *TriplePrefix);
 
   /// Create an LTOModule (private version). N.B. This method takes ownership of
   /// the buffer.