Changeset 1645:1d2d1aa16841
- Timestamp:
- 03/09/10 16:20:39
(2 years ago)
- Author:
- Matti Niemenmaa <matti.niemenmaa+hg@iki.fi>
- branch:
- default
- Message:
Don't error out with -singleobj, -of, and -c/-output-{bc,ll,o,s}.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1640 |
r1645 |
|
| 220 | 220 | } |
|---|
| 221 | 221 | |
|---|
| 222 | | void Module::buildTargetFiles() |
|---|
| | 222 | void Module::buildTargetFiles(bool singleObj) |
|---|
| 223 | 223 | { |
|---|
| 224 | 224 | if(objfile && |
|---|
| … | … | |
| 253 | 253 | // LDC |
|---|
| 254 | 254 | // another safety check to make sure we don't overwrite previous output files |
|---|
| 255 | | check_and_add_output_file(this, objfile->name->str); |
|---|
| | 255 | if (!singleObj) |
|---|
| | 256 | check_and_add_output_file(this, objfile->name->str); |
|---|
| 256 | 257 | if (docfile) |
|---|
| 257 | 258 | check_and_add_output_file(this, docfile->name->str); |
|---|
| r1640 |
r1645 |
|
| 189 | 189 | // LDC |
|---|
| 190 | 190 | llvm::Module* genLLVMModule(llvm::LLVMContext& context, Ir* sir); |
|---|
| 191 | | void buildTargetFiles(); |
|---|
| | 191 | void buildTargetFiles(bool singleObj); |
|---|
| 192 | 192 | File* buildFilePath(const char* forcename, const char* path, const char* ext); |
|---|
| 193 | 193 | Module *isModule() { return this; } |
|---|
| r1644 |
r1645 |
|
| 782 | 782 | m->read(0); |
|---|
| 783 | 783 | m->parse(); |
|---|
| 784 | | m->buildTargetFiles(); |
|---|
| | 784 | m->buildTargetFiles(singleObj); |
|---|
| 785 | 785 | m->deleteObjFile(); |
|---|
| 786 | 786 | if (m->isDocFile) |
|---|