summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2016-07-21 23:20:41 +0000
committerDaniel Dunbar <daniel@zuster.org>2016-07-21 23:20:41 +0000
commit718734a3627602fb6c627c08751a87ad46e199af (patch)
tree64142dee9f25e10b2c04a6dd7dcf411b3ade0c89
parent9081de2e32da34708a0802f4700ca8fabda1a0e4 (diff)
downloadbcm5719-llvm-718734a3627602fb6c627c08751a87ad46e199af.tar.gz
bcm5719-llvm-718734a3627602fb6c627c08751a87ad46e199af.zip
[lit] Use full config path in diagnostics.
- This allows tools like emacs to automatically find the config file path when you step through errors. - Patch by Dave Abrahams. llvm-svn: 276357
-rw-r--r--llvm/utils/lit/lit/LitConfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/LitConfig.py b/llvm/utils/lit/lit/LitConfig.py
index 2402221bef1..f5d41b16781 100644
--- a/llvm/utils/lit/lit/LitConfig.py
+++ b/llvm/utils/lit/lit/LitConfig.py
@@ -132,7 +132,7 @@ class LitConfig(object):
# Step out of _write_message, and then out of wrapper.
f = f.f_back.f_back
file,line,_,_,_ = inspect.getframeinfo(f)
- location = '%s:%d' % (os.path.basename(file), line)
+ location = '%s:%d' % (file, line)
sys.stderr.write('%s: %s: %s: %s\n' % (self.progname, location,
kind, message))
OpenPOWER on IntegriCloud