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/IceAssembler.h

Issue 1265023003: Clarify which type "Label" refers to (generic vs X86) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: simplify the get Created 5 years, 5 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 | « no previous file | src/IceAssemblerARM32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceAssembler.h
diff --git a/src/IceAssembler.h b/src/IceAssembler.h
index d53a3be2b4e22bc0fd36c6f6ad116d3cd8517bee..82eb95ca7f92777335df66792b977c235ac42aef 100644
--- a/src/IceAssembler.h
+++ b/src/IceAssembler.h
@@ -30,17 +30,17 @@
namespace Ice {
-/// A Label can be in one of three states:
+/// A LabelBase can be in one of three states:
/// - Unused.
/// - Linked, unplaced and tracking the position of branches to the label.
/// - Bound, placed and tracking its position.
-class Label {
- Label(const Label &) = delete;
- Label &operator=(const Label &) = delete;
+class LabelBase {
ascull 2015/07/31 20:54:54 Given that ARM and MIPS won't extend this is and t
jvoung (off chromium) 2015/08/03 17:19:21 Hmm good point about "Base"... ARM and MIPS don't
+ LabelBase(const LabelBase &) = delete;
+ LabelBase &operator=(const LabelBase &) = delete;
public:
- Label() = default;
- ~Label() = default;
+ LabelBase() = default;
+ ~LabelBase() = default;
virtual void finalCheck() const {
// Assert if label is being destroyed with unresolved branches pending.
@@ -249,7 +249,7 @@ public:
virtual llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const = 0;
/// Get the label for a CfgNode.
- virtual Label *getOrCreateCfgNodeLabel(SizeT NodeNumber) = 0;
+ virtual LabelBase *getCfgNodeLabel(SizeT NodeNumber) = 0;
/// Mark the current text location as the start of a CFG node
/// (represented by NodeNumber).
virtual void bindCfgNodeLabel(SizeT NodeNumber) = 0;
« no previous file with comments | « no previous file | src/IceAssemblerARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698