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

Unified Diff: unittest/BitcodeMunge.h

Issue 1766233002: Subzero: Fix symbol name mangling. Make flags global. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 9 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
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | unittest/BitcodeMunge.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittest/BitcodeMunge.h
diff --git a/unittest/BitcodeMunge.h b/unittest/BitcodeMunge.h
index 35869096a99c6c7d05e9e821d29378bcf36c085f..03c158156a311d2cc415151c22cfbe60fb25f1e3 100644
--- a/unittest/BitcodeMunge.h
+++ b/unittest/BitcodeMunge.h
@@ -21,6 +21,7 @@
#pragma clang diagnostic pop
#include "IceClFlags.h"
+#include "IceGlobalContext.h"
namespace IceTest {
@@ -32,7 +33,8 @@ class SubzeroBitcodeMunger : public llvm::NaClBitcodeMunger {
public:
SubzeroBitcodeMunger(const uint64_t Records[], size_t RecordSize,
uint64_t RecordTerminator)
- : llvm::NaClBitcodeMunger(Records, RecordSize, RecordTerminator) {
+ : llvm::NaClBitcodeMunger(Records, RecordSize, RecordTerminator),
+ Flags(Ice::GlobalContext::Flags) {
resetMungeFlags();
}
@@ -49,7 +51,7 @@ public:
}
/// Flags to use to run tests. Use to change default assumptions.
- Ice::ClFlags Flags;
+ Ice::ClFlags &Flags;
private:
void resetMungeFlags();
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | unittest/BitcodeMunge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698