From 858d0983830cfbfdd269a4b72e7fb45f12909beb Mon Sep 17 00:00:00 2001 From: Bob Haarman Date: Tue, 29 Aug 2017 04:08:16 +0000 Subject: [PATCH] Revert "[codeview] don't try to emit variable locations without registers" This reverts commit a256fbcacf448ee793d23552c46ed2971bf9eff5. llvm-svn: 311976 --- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 6a35e3214bd8..ed2c263d3202 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -988,7 +988,7 @@ void CodeViewDebug::calculateRanges( } // If we don't know how to handle this range, skip past it. - if (!Supported || Location.Register == 0 || (Location.Offset && !Location.InMemory)) + if (!Supported || (Location.Offset && !Location.InMemory)) continue; // Handle the two cases we can handle: indirect in memory and in register.