summaryrefslogtreecommitdiffstats
path: root/simulator
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2018-09-21 00:02:02 +0000
committerAndreas Gampe <agampe@google.com>2018-09-20 18:37:12 -0700
commitc55bb390d88b8eb62a50932f7f9b47c2a3733f16 (patch)
treeec2e74f3f8404dffcb9bfde4e7ffa3416a35543d /simulator
parent89468aeaa6a67ae4025b30d427391186306d6522 (diff)
downloadart-c55bb390d88b8eb62a50932f7f9b47c2a3733f16.tar.gz
art-c55bb390d88b8eb62a50932f7f9b47c2a3733f16.tar.bz2
art-c55bb390d88b8eb62a50932f7f9b47c2a3733f16.zip
Revert^2 "ART: Refactor typedef to using"
This reverts commit ee07743e03042c2ca36e0c9513847a9e7d2509f1. Reason for revert: fixed attributes. Bug: 32619234 Test: m test-art-host Test: m test-art-target-gtest-unstarted_runtime_test Change-Id: I6f0a775adfdf6ecd132b470f7c5446e949872e20
Diffstat (limited to 'simulator')
-rw-r--r--simulator/code_simulator_container.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/simulator/code_simulator_container.cc b/simulator/code_simulator_container.cc
index 3206bc7844..dc553dfe5d 100644
--- a/simulator/code_simulator_container.cc
+++ b/simulator/code_simulator_container.cc
@@ -34,13 +34,13 @@ CodeSimulatorContainer::CodeSimulatorContainer(InstructionSet target_isa)
if (libart_simulator_handle_ == nullptr) {
VLOG(simulator) << "Could not load " << libart_simulator_so_name << ": " << dlerror();
} else {
- typedef CodeSimulator* (*create_code_simulator_ptr_)(InstructionSet target_isa);
- create_code_simulator_ptr_ create_code_simulator_ =
- reinterpret_cast<create_code_simulator_ptr_>(
+ using CreateCodeSimulatorPtr = CodeSimulator*(*)(InstructionSet);
+ CreateCodeSimulatorPtr create_code_simulator =
+ reinterpret_cast<CreateCodeSimulatorPtr>(
dlsym(libart_simulator_handle_, "CreateCodeSimulator"));
- DCHECK(create_code_simulator_ != nullptr) << "Fail to find symbol of CreateCodeSimulator: "
+ DCHECK(create_code_simulator != nullptr) << "Fail to find symbol of CreateCodeSimulator: "
<< dlerror();
- simulator_ = create_code_simulator_(target_isa);
+ simulator_ = create_code_simulator(target_isa);
}
}