summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_symbolizer_fuchsia.cc
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-09-13 01:18:15 +0000
committerPetr Hosek <phosek@chromium.org>2017-09-13 01:18:15 +0000
commit995eff5631725e6e6fceba4883d01a7151ee5962 (patch)
tree46cbff2d26cdeb48cbaf9e8cf19546dbc3549d7c /lib/sanitizer_common/sanitizer_symbolizer_fuchsia.cc
parentcad7a086bf3ecc2d9cb1e79cfb299fe923a53c8e (diff)
[Fuchsia] Magenta -> Zircon
Fuchsia's lowest API layer has been renamed from Magenta to Zircon. Patch by Roland McGrath Differential Revision: https://reviews.llvm.org/D37770 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@313106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_symbolizer_fuchsia.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_symbolizer_fuchsia.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/sanitizer_common/sanitizer_symbolizer_fuchsia.cc b/lib/sanitizer_common/sanitizer_symbolizer_fuchsia.cc
index 942029254..3d1117d9d 100644
--- a/lib/sanitizer_common/sanitizer_symbolizer_fuchsia.cc
+++ b/lib/sanitizer_common/sanitizer_symbolizer_fuchsia.cc
@@ -26,7 +26,7 @@ namespace __sanitizer {
// Fuchsia's logging infrastructure emits enough information about
// process memory layout that a post-processing filter can do the
// symbolization and pretty-print the markup. See the spec at:
-// https://fuchsia.googlesource.com/magenta/+/master/docs/symbolizer_markup.md
+// https://fuchsia.googlesource.com/zircon/+/master/docs/symbolizer_markup.md
// This is used by UBSan for type names, and by ASan for global variable names.
constexpr const char *kFormatDemangle = "{{{symbol:%s}}}";
@@ -34,7 +34,7 @@ constexpr uptr kFormatDemangleMax = 1024; // Arbitrary.
// Function name or equivalent from PC location.
constexpr const char *kFormatFunction = "{{{pc:%p}}}";
-constexpr uptr kFormatFunctionMax = 64; // More than big enough for 64-bit hex.
+constexpr uptr kFormatFunctionMax = 64; // More than big enough for 64-bit hex.
// Global variable name or equivalent from data memory address.
constexpr const char *kFormatData = "{{{data:%p}}}";
@@ -97,12 +97,10 @@ void RenderFrame(InternalScopedString *buffer, const char *format, int frame_no,
}
Symbolizer *Symbolizer::PlatformInit() {
- return new(symbolizer_allocator_) Symbolizer({});
+ return new (symbolizer_allocator_) Symbolizer({});
}
-void Symbolizer::LateInitialize() {
- Symbolizer::GetOrInit();
-}
+void Symbolizer::LateInitialize() { Symbolizer::GetOrInit(); }
} // namespace __sanitizer