Update comments.
authorRui Ueyama <ruiu@google.com>
Sat, 17 Jan 2015 22:38:09 +0000 (22:38 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 17 Jan 2015 22:38:09 +0000 (22:38 +0000)
llvm-svn: 226380

lld/lib/Driver/CoreDriver.cpp
lld/lib/Driver/GnuLdDriver.cpp
lld/lib/Driver/WinLinkDriver.cpp

index 8bbc501..cc249df 100644 (file)
@@ -111,7 +111,7 @@ bool CoreDriver::parse(int argc, const char *argv[], CoreLinkingContext &ctx,
   ctx.setAllowRemainingUndefines(true);
   ctx.setSearchArchivesToOverrideTentativeDefinitions(false);
 
-  // Process all the arguments and create Input Elements
+  // Process all the arguments and create input files.
   for (auto inputArg : *parsedArgs) {
     switch (inputArg->getOption().getID()) {
     case OPT_mllvm:
index d086965..8c5314c 100644 (file)
@@ -460,7 +460,7 @@ bool GnuLdDriver::parse(int argc, const char *argv[],
     ctx->registry().addSupportELFDynamicSharedObjects(
         ctx->useShlibUndefines(), ctx->targetHandler());
 
-  // Process all the arguments and create Input Elements
+  // Process all the arguments and create input files.
   for (auto inputArg : *parsedArgs) {
     switch (inputArg->getOption().getID()) {
     case OPT_mllvm:
index fc593a9..594e7f1 100644 (file)
@@ -947,7 +947,7 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
 
   std::vector<StringRef> inputFiles;
 
-  // Process all the arguments and create Input Elements
+  // Process all the arguments and create input files
   for (auto inputArg : *parsedArgs) {
     switch (inputArg->getOption().getID()) {
     case OPT_mllvm:
@@ -1365,7 +1365,7 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
     }
   }
 
-  // Prepare objects to add them to input graph.
+  // Prepare objects to add them to the list of input files.
   for (StringRef path : inputFiles) {
     path = ctx.allocate(path);
     if (isLibraryFile(path)) {
@@ -1408,7 +1408,7 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
     ctx.setOutputPath(replaceExtension(ctx, path, ".exe"));
   }
 
-  // Add the input files to the input graph.
+  // Add the input files to the linking context.
   for (std::unique_ptr<File> &file : files) {
     if (isReadingDirectiveSection) {
       File *f = file.get();
@@ -1417,7 +1417,7 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
     ctx.getNodes().push_back(llvm::make_unique<FileNode>(std::move(file)));
   }
 
-  // Add the library group to the input graph.
+  // Add the library group to the linking context.
   if (!isReadingDirectiveSection) {
     // Add a group-end marker.
     ctx.getNodes().push_back(llvm::make_unique<GroupEnd>(0));