forked from OSchip/llvm-project
parent
fd4f32be90
commit
dd44a7fb0f
|
@ -957,7 +957,7 @@ public:
|
||||||
// Interpret .drectve section if the section has contents.
|
// Interpret .drectve section if the section has contents.
|
||||||
StringRef directives = file->getLinkerDirectives();
|
StringRef directives = file->getLinkerDirectives();
|
||||||
if (!directives.empty())
|
if (!directives.empty())
|
||||||
if (std::error_code ec = handleDirectiveSection(registry, directives))
|
if (std::error_code ec = handleDirectiveSection(directives))
|
||||||
return ec;
|
return ec;
|
||||||
|
|
||||||
if (std::error_code ec = file->parse())
|
if (std::error_code ec = file->parse())
|
||||||
|
@ -991,8 +991,7 @@ private:
|
||||||
//
|
//
|
||||||
// The section mainly contains /defaultlib (-l in Unix), but can contain any
|
// The section mainly contains /defaultlib (-l in Unix), but can contain any
|
||||||
// options as long as they are valid.
|
// options as long as they are valid.
|
||||||
std::error_code handleDirectiveSection(const Registry ®istry,
|
std::error_code handleDirectiveSection(StringRef directives) const {
|
||||||
StringRef directives) const {
|
|
||||||
DEBUG(llvm::dbgs() << ".drectve: " << directives << "\n");
|
DEBUG(llvm::dbgs() << ".drectve: " << directives << "\n");
|
||||||
|
|
||||||
// Split the string into tokens, as the shell would do for argv.
|
// Split the string into tokens, as the shell would do for argv.
|
||||||
|
|
Loading…
Reference in New Issue