about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-11-14 01:24:36 +0200
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-11-14 01:24:36 +0200
commit824b307ff7e3e93f2a5d0d864e9161c3db12acfc (patch)
tree021efcc9ecc2b81b7844f89c08b04008001cdc61 /src/rustllvm/RustWrapper.cpp
parentaca22a8f81993b0e046dbc41307c99bd9e38a195 (diff)
downloadrust-824b307ff7e3e93f2a5d0d864e9161c3db12acfc.tar.gz
rust-824b307ff7e3e93f2a5d0d864e9161c3db12acfc.zip
avoid the pprust infrastructure in macro expansion
This changes macro expansion to format the path of a macro directly
instead of usng the pprust infrastructure. The pprust infrastructure
tries to perform line-breaking in a slow fashion, which is undesired
when formatting the path of a macro.

This should to speed up expansion by a fair amount (I saw 20% on a
profiler on `rustc_mir`, and 50% of the time marked as "expansion" in
the profiler/time-passes is actually spent loading dependencies).
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions