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

Unified Diff: src/PNaClTranslator.cpp

Issue 1900543002: Subzero: Allow per-method controls. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More cleanup Created 4 years, 8 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: src/PNaClTranslator.cpp
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp
index 0a8e52afc2e4436c82a8e507e0027c91ca410606..69498ce57abdbd9a447a78a8004b2264c2f0d8cd 100644
--- a/src/PNaClTranslator.cpp
+++ b/src/PNaClTranslator.cpp
@@ -22,6 +22,7 @@
#include "IceGlobalInits.h"
#include "IceInst.h"
#include "IceOperand.h"
+#include "IceRangeSpec.h"
#ifdef __clang__
#pragma clang diagnostic push
@@ -481,10 +482,9 @@ private:
// - DUMP is enabled
// - The symbol is external
// - The -timing-funcs flag is enabled
- // - The -timing-focus flag is enabled
+ // - Some RangeSpec is initialized with actual names
if (Ice::BuildDefs::dump() || !Decl->isInternal() ||
- Ice::getFlags().getTimeEachFunction() ||
- !Ice::getFlags().getTimingFocusOn().empty()) {
+ Ice::RangeSpec::hasNames() || Ice::getFlags().getTimeEachFunction()) {
Decl->setName(Ctx, Translator.createUnnamedName(Prefix, NameIndex));
} else {
Decl->setName(Ctx);

Powered by Google App Engine
This is Rietveld 408576698