Skip to content

Commit 9606e4a

Browse files
Clean warnings and debug prints left in fe58757
Signed-off-by: Giuliano Belinassi <gbelinassi@suse.de>
1 parent f71b552 commit 9606e4a

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

libcextract/LLVMMisc.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ bool Has_Balanced_Ifdef(const StringRef &string)
332332
int balance = 0;
333333

334334
/* Tokenize. */
335-
bool in_comments = false;
336335
char *tok = strtok(buf, TOKEN_VECTOR);
337336
while (tok != nullptr) {
338337
/* There is the silly case in which #ifdef is written as `# ifdef`. */

libcextract/PrettyPrint.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,6 @@ void PrettyPrint::Print_Decl_Raw(Decl *decl)
203203
from struct rtld_global_ro and below, which would only include the
204204
#endif, and not the #ifdef. In case its not balanced we fallback to
205205
AST dumping. */
206-
if (NamedDecl *d = dyn_cast<NamedDecl>(decl)) {
207-
if (d->getName() == "rtld_global_ro") {
208-
llvm::outs() << "debug me \n";
209-
}
210-
}
211206
if (Has_Balanced_Ifdef(decl_source)) {
212207
Out << decl_source;
213208
} else {

0 commit comments

Comments
 (0)