summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options_map-inl.h
diff options
context:
space:
mode:
author Ryan Prichard <rprichard@google.com> 2023-09-01 00:38:30 -0700
committer Ryan Prichard <rprichard@google.com> 2023-09-07 00:07:09 +0000
commitfefb7e698f603cd8d2840254dcf2cf6360e1e7ce (patch)
tree962aab11b5efc8da77f67bbfd00995be114591f0 /compiler/driver/compiler_options_map-inl.h
parent637393a0d41e7079764238ad7a207525520e05be (diff)
Don't inline AddCompilerOptionsArgumentParserOptions
This function generates a large stack frame, but that's OK, so the stack frame limit is ignored for it. However, if the function is inlined into its callers, then the pragma suppressing the stack frame limit doesn't work. Bug: b/175635923 Test: treehugger Change-Id: Ie24409ba5691f2734cfedb6506e9fb341718b86b
Diffstat (limited to 'compiler/driver/compiler_options_map-inl.h')
-rw-r--r--compiler/driver/compiler_options_map-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/driver/compiler_options_map-inl.h b/compiler/driver/compiler_options_map-inl.h
index 79a59625f5..8530df37e4 100644
--- a/compiler/driver/compiler_options_map-inl.h
+++ b/compiler/driver/compiler_options_map-inl.h
@@ -117,7 +117,7 @@ inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string
#pragma GCC diagnostic ignored "-Wframe-larger-than="
template <typename Map, typename Builder>
-inline void AddCompilerOptionsArgumentParserOptions(Builder& b) {
+NO_INLINE void AddCompilerOptionsArgumentParserOptions(Builder& b) {
// clang-format off
b.
Define("--compiler-filter=_")