diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-05-23 03:08:05 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-05-23 03:08:05 +0000 |
| commit | 0e57b91f9cee7c646416239d9becea8be4d0596f (patch) | |
| tree | b3a381a005a62876e1965e1f3c22da638f7c3dbc | |
| parent | a4f1ec043c328c2fbf67717d81236c338500f5bf (diff) | |
| download | bcm5719-llvm-0e57b91f9cee7c646416239d9becea8be4d0596f.tar.gz bcm5719-llvm-0e57b91f9cee7c646416239d9becea8be4d0596f.zip | |
Use short identifier.
llvm-svn: 209497
| -rw-r--r-- | lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp index 933efeb2d08..19a5509ee34 100644 --- a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp +++ b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp @@ -1004,7 +1004,7 @@ private: class COFFObjectReader : public Reader { public: - COFFObjectReader(PECOFFLinkingContext &ctx) : _context(ctx) {} + COFFObjectReader(PECOFFLinkingContext &ctx) : _ctx(ctx) {} bool canParse(file_magic magic, StringRef ext, const MemoryBuffer &) const override { @@ -1031,7 +1031,7 @@ public: return ec; // Check for /SAFESEH. - if (_context.requireSEH() && !file->isCompatibleWithSEH()) { + if (_ctx.requireSEH() && !file->isCompatibleWithSEH()) { llvm::errs() << "/SAFESEH is specified, but " << mbName << " is not compatible with SEH.\n"; return llvm::object::object_error::parse_failed; @@ -1040,7 +1040,7 @@ public: // In order to emit SEH table, all input files need to be compatible with // SEH. Disable SEH if the file being read is not compatible. if (!file->isCompatibleWithSEH()) - _context.setSafeSEH(false); + _ctx.setSafeSEH(false); // One can define alias symbols using /alternatename:<sym>=<sym> option. // The mapping for /alternatename is in the context object. This helper @@ -1074,7 +1074,7 @@ private: const char **argv = &tokens[0]; std::string errorMessage; llvm::raw_string_ostream stream(errorMessage); - bool parseFailed = !WinLinkDriver::parse(argc, argv, _context, stream, + bool parseFailed = !WinLinkDriver::parse(argc, argv, _ctx, stream, /*isDirective*/ true); stream.flush(); // Print error message if error. @@ -1104,8 +1104,8 @@ private: void createAlternateNameAtoms(FileCOFF &file) const { std::vector<const DefinedAtom *> aliases; for (const DefinedAtom *atom : file.defined()) { - auto it = _context.alternateNames().find(atom->name()); - if (it != _context.alternateNames().end()) + auto it = _ctx.alternateNames().find(atom->name()); + if (it != _ctx.alternateNames().end()) aliases.push_back(createAlias(file, it->second, atom)); } for (const DefinedAtom *alias : aliases) { @@ -1113,7 +1113,7 @@ private: } } - PECOFFLinkingContext &_context; + PECOFFLinkingContext &_ctx; mutable BumpPtrStringSaver _stringSaver; }; |

