OSDN Git Service

Clarify which type "Label" refers to (generic vs X86)
authorJan Voung <jvoung@chromium.org>
Wed, 5 Aug 2015 16:35:18 +0000 (09:35 -0700)
committerJan Voung <jvoung@chromium.org>
Wed, 5 Aug 2015 16:35:18 +0000 (09:35 -0700)
commitc2ec58179184e3357255a02b94ec6b219dc44080
tree2e5020edd19cd6783c95bdbcc436613a8478c0da
parent1eda90a112993eb171b8f60e5470b554e59542af
Clarify which type "Label" refers to (generic vs X86)

There is a generic Label that can be used as-is for ARM
and MIPS, and there is an x86 derived class Label which
adds the concept of near and far (for 8-bit vs 32-bit
jumps). Previously, one method "getOrCreateCfgNodeLabel"
would say that it returns a Label when it means the generic
one in some cases and the x86 one in other cases.

Split that into getCfgNodeLabel and getOrCreateCfgNodeLabel
where getCfgNodeLabel returns the generic one and
getOrCreateCfgNodeLabel is part of the x86 code and
returns the x86 one.

BUG=none
R=ascull@google.com, stichnot@chromium.org

Review URL: https://codereview.chromium.org/1265023003 .
src/IceAssembler.h
src/IceAssemblerARM32.h
src/IceAssemblerMIPS32.h
src/IceAssemblerX8632.h
src/IceAssemblerX86Base.h
src/IceAssemblerX86BaseImpl.h
src/IceCfg.cpp