aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2022-12-20 10:06:28 -0500
committerNico Weber <thakis@chromium.org>2022-12-20 10:09:43 -0500
commit2aa998d22fe09191cd6c1b697e373266c1131502 (patch)
treef1c4b71c1f3557c8cd66181d64ee4b4ae30a0b3e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent69186c52400cbb42ff485d851863ca2d5407f841 (diff)
downloadllvm-2aa998d22fe09191cd6c1b697e373266c1131502.zip
llvm-2aa998d22fe09191cd6c1b697e373266c1131502.tar.gz
llvm-2aa998d22fe09191cd6c1b697e373266c1131502.tar.bz2
[gn] Add explicit deps on TargetParser
This diff was generated by the following script: #!/usr/bin/env python3 import os, subprocess r = subprocess.run('git show --pretty='' --name-only f09cf34d00'.split(), stdout=subprocess.PIPE, text=True) for line in r.stdout.splitlines(): if not line.endswith('CMakeLists.txt'): continue gn = 'llvm/utils/gn/secondary/' + os.path.dirname(line) + '/BUILD.gn' if not os.path.exists(gn): continue with open(gn) as f: contents = f.read() if contents.count('"//llvm/lib/Support",') == 1: contents = contents.replace( '"//llvm/lib/Support",', '"//llvm/lib/Support", "//llvm/lib/TargetParser",') elif contents.count(' deps = [') == 1: contents = contents.replace( ' deps = [', ' deps = [ "//llvm/lib/TargetParser",') else: print('needs manual fixup:', gn) continue with open(gn, 'w') as f: f.write(contents) I then manually fixed up the BUILD.gn files for Support (should not depend on TargetParser) and TargetParser (should depend on Support) and ran `gn format` on all touched files.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions