@@ -30,9 +30,6 @@ def get_required_attr(config, attr_name):
3030
3131target_is_msvc = bool (re .match (r".*-windows-msvc$" , config .target_triple ))
3232
33- # Whether continous profile collection (%c) requires runtime counter relocation on this platform
34- runtime_reloc = bool (config .host_os in ["AIX" , "Linux" ])
35-
3633if config .host_os in ["Linux" ]:
3734 extra_link_flags = ["-ldl" ]
3835elif target_is_msvc :
@@ -97,14 +94,6 @@ def exclude_unsupported_files_for_aix(dirname):
9794config .substitutions .append (
9895 ("%clang_profgen=" , build_invocation (clang_cflags ) + " -fprofile-instr-generate=" )
9996)
100- config .substitutions .append (
101- (
102- "%clang_profgen_cont " ,
103- build_invocation (clang_cflags )
104- + " -fprofile-instr-generate "
105- + ("-mllvm -runtime-counter-relocation " if runtime_reloc else "" ),
106- )
107- )
10897config .substitutions .append (
10998 (
11099 "%clangxx_profgen " ,
@@ -124,28 +113,12 @@ def exclude_unsupported_files_for_aix(dirname):
124113config .substitutions .append (
125114 ("%clang_pgogen=" , build_invocation (clang_cflags ) + " -fprofile-generate=" )
126115)
127- config .substitutions .append (
128- (
129- "%clang_pgogen_cont " ,
130- build_invocation (clang_cflags )
131- + " -fprofile-generate "
132- + ("-mllvm -runtime-counter-relocation " if runtime_reloc else "" ),
133- )
134- )
135116config .substitutions .append (
136117 ("%clangxx_pgogen " , build_invocation (clang_cxxflags ) + " -fprofile-generate " )
137118)
138119config .substitutions .append (
139120 ("%clangxx_pgogen=" , build_invocation (clang_cxxflags ) + " -fprofile-generate=" )
140121)
141- config .substitutions .append (
142- (
143- "%clangxx_pgogen_cont " ,
144- build_invocation (clang_cxxflags )
145- + " -fprofile-generate "
146- + ("-mllvm -runtime-counter-relocation " if runtime_reloc else "" ),
147- )
148- )
149122
150123config .substitutions .append (
151124 ("%clang_cspgogen " , build_invocation (clang_cflags ) + " -fcs-profile-generate " )
0 commit comments