Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: base/android/cxa_demangle_stub.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/cpu_features.cc ('k') | base/android/event_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/cxa_demangle_stub.cc
diff --git a/base/android/cxa_demangle_stub.cc b/base/android/cxa_demangle_stub.cc
deleted file mode 100644
index b0d2b87c59364fe8cf8517cb5672ebeec8994d02..0000000000000000000000000000000000000000
--- a/base/android/cxa_demangle_stub.cc
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <unistd.h>
-
-// LLVM's demangler is large, and we have no need of it. Overriding it with
-// our own stub version here stops a lot of code being pulled in from libc++.
-// More here:
-// https://llvm.org/svn/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp
-extern "C" char* __cxa_demangle(const char* mangled_name,
- char* buf,
- size_t* n,
- int* status) {
- static const int kMemoryAllocFailure = -1; // LLVM's memory_alloc_failure.
- if (status)
- *status = kMemoryAllocFailure;
- return nullptr;
-}
« no previous file with comments | « base/android/cpu_features.cc ('k') | base/android/event_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698