projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00940fb
)
Remove excessive padding from LineNoCacheTy
author
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 16 Aug 2016 19:20:10 +0000
(19:20 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 16 Aug 2016 19:20:10 +0000
(19:20 +0000)
The struct LineNoCacheTy is in SourceMgr.cpp inside anonymous namespace.
This diff changes the order of fields and removes the excessive padding
(8 bytes).
Patch by Alexander Shaposhnikov!
Differential revision: https://reviews.llvm.org/D23546
llvm-svn: 278838
llvm/lib/Support/SourceMgr.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/SourceMgr.cpp
b/llvm/lib/Support/SourceMgr.cpp
index
395c29b
..
b2f87d6
100644
(file)
--- a/
llvm/lib/Support/SourceMgr.cpp
+++ b/
llvm/lib/Support/SourceMgr.cpp
@@
-26,8
+26,8
@@
static const size_t TabStop = 8;
namespace {
struct LineNoCacheTy {
- unsigned LastQueryBufferID;
const char *LastQuery;
+ unsigned LastQueryBufferID;
unsigned LineNoOfQuery;
};
}