Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Unified Diff: lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h
diff --git a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h
index 940412981a5900167a7ce1d01cfc138de490df4c..8c42af1475d58178e9c60fb91fda331cf72ef791 100644
--- a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h
+++ b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h
@@ -235,6 +235,7 @@ public:
bool isDematerializable(const GlobalValue *GV) const override;
std::error_code materialize(GlobalValue *GV) override;
std::error_code MaterializeModule(Module *M) override;
+ std::vector<StructType *> getIdentifiedStructTypes() const override;
void Dematerialize(GlobalValue *GV) override;
void releaseBuffer();
@@ -254,6 +255,14 @@ public:
/// an error message and returns corresponding error code.
std::error_code getAlignmentValue(uint64_t Exponent, unsigned &Alignment);
+ // GVMaterializer interface. It's a no-op for PNaCl bitcode, which has no
+ // metadata.
+ std::error_code materializeMetadata() override { return std::error_code(); };
+
+ // GVMaterializer interface. Causes debug info to be stripped from the module
+ // on materialization. It's a no-op for PNaCl bitcode, which has no metadata.
+ void setStripDebugInfo() override {};
+
private:
// Returns false if Header is acceptable.
bool AcceptHeader() const {

Powered by Google App Engine
This is Rietveld 408576698