summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/RallocUtil.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-01-23 16:57:47 -0800
committer Elliott Hughes <enh@google.com> 2012-01-23 17:26:10 -0800
commit11d1b0c31ddd710d26068da8e0e4621002205b4b (patch)
tree8d9c9c0dd5741214466775b86069032d609fd91c /src/compiler/codegen/RallocUtil.cc
parentbbdb1437f55948e5395b4dcb306e25605539a444 (diff)
Reduce namespace pollution.
This leaves us with just the mspace stuff and three libdex functions to clean up. We deliberately expose the JII API, and I don't think there's anything we can really do about the art_..._from_code stuff (and at least that starts with "art_"). Change-Id: I77e58e8330cd2afeb496642302dfe3311e68091a
Diffstat (limited to 'src/compiler/codegen/RallocUtil.cc')
-rw-r--r--src/compiler/codegen/RallocUtil.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/codegen/RallocUtil.cc b/src/compiler/codegen/RallocUtil.cc
index 3fe3b3ad5f..7dcb95bd36 100644
--- a/src/compiler/codegen/RallocUtil.cc
+++ b/src/compiler/codegen/RallocUtil.cc
@@ -27,6 +27,8 @@
#include "../Dataflow.h"
#include "Ralloc.h"
+namespace art {
+
#define SREG(c, s) ((c)->regLocation[(s)].sRegLow)
/*
* Get the "real" sreg number associated with an sReg slot. In general,
@@ -1080,3 +1082,5 @@ extern RegLocation oatGetSrcWide(CompilationUnit* cUnit, MIR* mir,
DCHECK(res.wide);
return res;
}
+
+} // namespace art