diff options
| author | Theo Belaire <theo.belaire@gmail.com> | 2015-04-14 13:53:23 -0400 |
|---|---|---|
| committer | Theo Belaire <theo.belaire@gmail.com> | 2015-04-14 13:53:23 -0400 |
| commit | 9f481b85142362e725e6eb6b33a2eba062453c95 (patch) | |
| tree | 5c80be94f6f8aa17f2c96baba610ff2279184edd /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 47551b57456c108c69f698b114606a275fb01643 (diff) | |
| download | rust-9f481b85142362e725e6eb6b33a2eba062453c95.tar.gz rust-9f481b85142362e725e6eb6b33a2eba062453c95.zip | |
include_bytes! now registers the file included
This is a little bit tricky, since with include_str!, we know that we
are including utf-8 content, so it's safe to store the source as a
String in a FileMap. We don't know that for include_bytes!, but I don't
think we actually need to track the contents anyways, so I'm passing "".
new_filemap does check for the zero length content, and it should be
reasonable, howeven I'm not sure if it would be better to pass None
instead of Some(Rc::new("")) as the src component of a FileMap.
Fixes bug #24348
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
