OSDN Git Service

Re-land "Fix invalid using decl in bionic relocation_packer"
authorrnk <rnk@chromium.org>
Thu, 5 May 2016 23:44:34 +0000 (16:44 -0700)
committerDimitry Ivanov <dimitry@google.com>
Fri, 6 May 2016 21:09:58 +0000 (14:09 -0700)
commit18d0e8c11df23709184e55d0fb22e06d057ae898
treea55b3f7e45d075db0067c8a22ed3c40fe4e40165
parent98ac6f415f4cd68be6691c1d04f59a76af802485
Re-land "Fix invalid using decl in bionic relocation_packer"

This time with more namespace qualification.

Tested manually by building clang_x64/android_relocation_packer locally,
as the Android trybot analyze step does not think it needs to run for
this change.

Original description:

> The code was essentially doing 'using Logger::INFO' in the global
> namespace to make its 'LOG(INFO)' macros work. Unfortunately, C++ does
> not allow you to use using decls on classes like this unless you are in
> a derived class. GCC does not accept this code, and Clang was recently
> updated (LLVM r268594) to reject it as well.
>
> This should fix the Chromium Android ASan build with TOT Clang:
> https://build.chromium.org/p/chromium.fyi/builders/ClangToTAndroidASan/

TBR=thakis@chromium.org,sgurun@chromium.org
BUG=609543

Review-Url: https://codereview.chromium.org/1952353005
Cr-Commit-Position: refs/heads/master@{#391952}
(cherry picked from commit 5762af8ad13e62957493c3e4314a234ee57a4200)

Change-Id: Ibc6f6023aef028c5029be128ac799dc67fc6683c
tools/relocation_packer/src/debug.h