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

Unified Diff: tools/llvm/driver/pnacl-meta.py

Issue 8395028: Move tools/llvm/driver to pnacl/driver. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 9 years, 2 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 | « tools/llvm/driver/pnacl-ld.py ('k') | tools/llvm/driver/pnacl-nm.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/llvm/driver/pnacl-meta.py
===================================================================
--- tools/llvm/driver/pnacl-meta.py (revision 7025)
+++ tools/llvm/driver/pnacl-meta.py (working copy)
@@ -1,52 +0,0 @@
-#!/usr/bin/python
-# Copyright (c) 2011 The Native Client Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-#
-# IMPORTANT NOTE: If you make local mods to this file, you must run:
-# % tools/llvm/utman.sh driver
-# in order for them to take effect in the scons build. This command
-# updates the copy in the toolchain/ tree.
-#
-
-# Show the PNaCl metadata of a bitcode file
-
-from driver_tools import *
-
-EXTRA_ENV = {
- 'INPUTS' : '',
-}
-env.update(EXTRA_ENV)
-
-META_PATTERNS = [
- ( '(.*)', "env.append('INPUTS', pathtools.normalize($0))"),
-]
-
-def Usage():
- print "Usage: pnacl-meta [files...]"
- print "Show the PNaCl-specific metadata of a bitcode file"
-
-def main(argv):
- ParseArgs(argv, META_PATTERNS)
-
- inputs = env.get('INPUTS')
-
- if not inputs:
- Usage()
- DriverExit(0)
-
- for f in inputs:
- if not IsBitcode(f):
- Log.Fatal("%s: File is not bitcode", pathtools.touser(f))
- metadata = GetBitcodeMetadata(f)
- print pathtools.touser(f) + ":"
- for k, v in metadata.iteritems():
- if isinstance(v, list):
- v = "[ " + ', '.join(v) + " ]"
- print " %-12s: %s" % (k, v)
-
- return 0
-
-if __name__ == "__main__":
- DriverMain(main)
-
« no previous file with comments | « tools/llvm/driver/pnacl-ld.py ('k') | tools/llvm/driver/pnacl-nm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698