OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e257ee4
)
Fix build breakage in dwarf_test.
author
Narayan Kamath
<narayan@google.com>
Thu, 11 Jun 2015 07:49:57 +0000
(08:49 +0100)
committer
Narayan Kamath
<narayan@google.com>
Thu, 11 Jun 2015 07:49:57 +0000
(08:49 +0100)
Define a variable only if it's going to be used.
Change-Id: Id293f79bf986c79fb33daa3242388303c0fb1f08
compiler/dwarf/dwarf_test.cc
patch
|
blob
|
history
diff --git
a/compiler/dwarf/dwarf_test.cc
b/compiler/dwarf/dwarf_test.cc
index
4971f0e
..
4d423d0
100644
(file)
--- a/
compiler/dwarf/dwarf_test.cc
+++ b/
compiler/dwarf/dwarf_test.cc
@@
-26,11
+26,11
@@
namespace art {
namespace dwarf {
-constexpr CFIFormat kCFIFormat = DW_DEBUG_FRAME_FORMAT;
-
// Run the tests only on host since we need objdump.
#ifndef HAVE_ANDROID_OS
+constexpr CFIFormat kCFIFormat = DW_DEBUG_FRAME_FORMAT;
+
TEST_F(DwarfTest, DebugFrame) {
const bool is64bit = false;