diff options
Diffstat (limited to 'include/llvm/Object/ModuleSummaryIndexObjectFile.h')
| -rw-r--r-- | include/llvm/Object/ModuleSummaryIndexObjectFile.h | 25 | 
1 files changed, 19 insertions, 6 deletions
| diff --git a/include/llvm/Object/ModuleSummaryIndexObjectFile.h b/include/llvm/Object/ModuleSummaryIndexObjectFile.h index 713022264ea7..f733f861e2c0 100644 --- a/include/llvm/Object/ModuleSummaryIndexObjectFile.h +++ b/include/llvm/Object/ModuleSummaryIndexObjectFile.h @@ -1,4 +1,4 @@ -//===- ModuleSummaryIndexObjectFile.h - Summary index file implementation -=// +//===- ModuleSummaryIndexObjectFile.h - Summary index file implementation -===//  //  //                     The LLVM Compiler Infrastructure  // @@ -14,14 +14,22 @@  #ifndef LLVM_OBJECT_MODULESUMMARYINDEXOBJECTFILE_H  #define LLVM_OBJECT_MODULESUMMARYINDEXOBJECTFILE_H -#include "llvm/IR/DiagnosticInfo.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Object/Binary.h"  #include "llvm/Object/SymbolicFile.h" +#include "llvm/Support/Error.h" +#include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/ErrorOr.h" +#include "llvm/Support/MemoryBuffer.h" +#include <memory> +#include <system_error>  namespace llvm { +  class ModuleSummaryIndex; -class Module;  namespace object { +  class ObjectFile;  /// This class is used to read just the module summary index related @@ -41,15 +49,18 @@ public:    void moveSymbolNext(DataRefImpl &Symb) const override {      llvm_unreachable("not implemented");    } +    std::error_code printSymbolName(raw_ostream &OS,                                    DataRefImpl Symb) const override {      llvm_unreachable("not implemented");      return std::error_code();    } +    uint32_t getSymbolFlags(DataRefImpl Symb) const override {      llvm_unreachable("not implemented");      return 0;    } +    basic_symbol_iterator symbol_begin() const override {      llvm_unreachable("not implemented");      return basic_symbol_iterator(BasicSymbolRef()); @@ -85,7 +96,8 @@ public:    static Expected<std::unique_ptr<ModuleSummaryIndexObjectFile>>    create(MemoryBufferRef Object);  }; -} + +} // end namespace object  /// Parse the module summary index out of an IR file and return the module  /// summary index object if found, or nullptr if not. If Identifier is @@ -94,6 +106,7 @@ public:  /// containing minimized bitcode just for the thin link.  Expected<std::unique_ptr<ModuleSummaryIndex>>  getModuleSummaryIndexForFile(StringRef Path, StringRef Identifier = ""); -} -#endif +} // end namespace llvm + +#endif // LLVM_OBJECT_MODULESUMMARYINDEXOBJECTFILE_H | 
