Skip to content

Commit d24b93f

Browse files
Remove trailing spaces.
llvm-svn: 61743
1 parent f5dbbae commit d24b93f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/lib/Transforms/IPO/Internalize.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ InternalizePass::InternalizePass(bool AllButMain)
7373
ExternalNames.insert(APIList.begin(), APIList.end());
7474
}
7575

76-
InternalizePass::InternalizePass(const std::vector<const char *>&exportList)
76+
InternalizePass::InternalizePass(const std::vector<const char *>&exportList)
7777
: ModulePass(&ID), AllButMain(false){
7878
for(std::vector<const char *>::const_iterator itr = exportList.begin();
7979
itr != exportList.end(); itr++) {
@@ -85,7 +85,7 @@ void InternalizePass::LoadFile(const char *Filename) {
8585
// Load the APIFile...
8686
std::ifstream In(Filename);
8787
if (!In.good()) {
88-
cerr << "WARNING: Internalize couldn't load file '" << Filename
88+
cerr << "WARNING: Internalize couldn't load file '" << Filename
8989
<< "'! Continuing as if it's empty.\n";
9090
return; // Just continue as if the file were empty
9191
}
@@ -104,21 +104,21 @@ bool InternalizePass::runOnModule(Module &M) {
104104
if (ExternalNames.empty()) {
105105
// Return if we're not in 'all but main' mode and have no external api
106106
if (!AllButMain)
107-
return false;
107+
return false;
108108
// If no list or file of symbols was specified, check to see if there is a
109109
// "main" symbol defined in the module. If so, use it, otherwise do not
110110
// internalize the module, it must be a library or something.
111111
//
112112
Function *MainFunc = M.getFunction("main");
113113
if (MainFunc == 0 || MainFunc->isDeclaration())
114114
return false; // No main found, must be a library...
115-
115+
116116
// Preserve main, internalize all else.
117117
ExternalNames.insert(MainFunc->getName());
118118
}
119-
119+
120120
bool Changed = false;
121-
121+
122122
// Mark all functions not in the api as internal.
123123
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
124124
if (!I->isDeclaration() && // Function must be defined here
@@ -131,11 +131,11 @@ bool InternalizePass::runOnModule(Module &M) {
131131
++NumFunctions;
132132
DOUT << "Internalizing func " << I->getName() << "\n";
133133
}
134-
134+
135135
// Never internalize the llvm.used symbol. It is used to implement
136136
// attribute((used)).
137137
ExternalNames.insert("llvm.used");
138-
138+
139139
// Never internalize anchors used by the machine module info, else the info
140140
// won't find them. (see MachineModuleInfo.)
141141
ExternalNames.insert("llvm.dbg.compile_units");
@@ -145,7 +145,7 @@ bool InternalizePass::runOnModule(Module &M) {
145145
ExternalNames.insert("llvm.global_dtors");
146146
ExternalNames.insert("llvm.noinline");
147147
ExternalNames.insert("llvm.global.annotations");
148-
148+
149149
// Mark all global variables with initializers that are not in the api as
150150
// internal as well.
151151
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
@@ -157,7 +157,7 @@ bool InternalizePass::runOnModule(Module &M) {
157157
++NumGlobals;
158158
DOUT << "Internalized gvar " << I->getName() << "\n";
159159
}
160-
160+
161161
return Changed;
162162
}
163163

0 commit comments

Comments
 (0)