[lld] r193384 - Concatenate strings at compile time.
Rui Ueyama
ruiu at google.com
Thu Oct 24 17:12:09 PDT 2013
Author: ruiu
Date: Thu Oct 24 19:12:09 2013
New Revision: 193384
URL: http://llvm.org/viewvc/llvm-project?rev=193384&view=rev
Log:
Concatenate strings at compile time.
Modified:
lld/trunk/lib/Driver/WinLinkDriver.cpp
Modified: lld/trunk/lib/Driver/WinLinkDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/WinLinkDriver.cpp?rev=193384&r1=193383&r2=193384&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkDriver.cpp (original)
+++ lld/trunk/lib/Driver/WinLinkDriver.cpp Thu Oct 24 19:12:09 2013
@@ -221,23 +221,25 @@ std::string createManifestXml(PECOFFLink
// Emit the XML. Note that we do *not* verify that the XML attributes are
// syntactically correct. This is intentional for link.exe compatibility.
out << "<?xml version=\"1.0\" standalone=\"yes\"?>\n"
- << "<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\"\n"
- << " manifestVersion=\"1.0\">\n"
- << " <trustInfo>\n"
- << " <security>\n"
- << " <requestedPrivileges>\n"
- << " <requestedExecutionLevel level=" << ctx.getManifestLevel()
- << " uiAccess=" << ctx.getManifestUiAccess() << "/>\n"
- << " </requestedPrivileges>\n"
- << " </security>\n"
- << " </trustInfo>\n";
+ "<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\"\n"
+ " manifestVersion=\"1.0\">\n"
+ " <trustInfo>\n"
+ " <security>\n"
+ " <requestedPrivileges>\n"
+ " <requestedExecutionLevel level=" << ctx.getManifestLevel()
+ << " uiAccess=" << ctx.getManifestUiAccess()
+ << "/>\n"
+ " </requestedPrivileges>\n"
+ " </security>\n"
+ " </trustInfo>\n";
const std::string &dependency = ctx.getManifestDependency();
if (!dependency.empty()) {
out << " <dependency>\n"
- << " <dependentAssembly>\n"
- << " <assemblyIdentity " << dependency << " />\n"
- << " </dependentAssembly>\n"
- << " </dependency>\n";
+ " <dependentAssembly>\n"
+ " <assemblyIdentity " << dependency
+ << " />\n"
+ " </dependentAssembly>\n"
+ " </dependency>\n";
}
out << "</assembly>\n";
out.flush();
More information about the llvm-commits
mailing list