aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-18 00:12:41 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-18 00:12:41 +0000
commitf744e7e15aff15970057d684691734f8ff4838ed (patch)
tree68b19cd86eb78994a9a750a32cc1578125191a4f /llvm/lib/Object/ELFObjectFile.cpp
parent9c46450dbb0df8fb667f835751c4d85537084554 (diff)
downloadllvm-f744e7e15aff15970057d684691734f8ff4838ed.zip
llvm-f744e7e15aff15970057d684691734f8ff4838ed.tar.gz
llvm-f744e7e15aff15970057d684691734f8ff4838ed.tar.bz2
[LIT] Make util.executeCommand python3 friendly
Summary: The parameter `input` to `subprocess.Popen.communicate(...)` must be an object of type `bytes` . This is strictly enforced in python3. This patch (1) allows `to_bytes` to be safely called redundantly. (2) Explicitly convert `input` within `executeCommand`. This allows for usages like `executeCommand(['clang++', '-'], input='int main() {}\n')`. Reviewers: ddunbar, BinaryKhaos, modocache, dim, EricWF Reviewed By: EricWF Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D28736 llvm-svn: 292308
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions